# Copyright (C) OCERA Consortium. # Author Ismael Ripoll ######################## Variables to customise. # Name of the component COMPONENT=CMP_TIMERS COMPONENT=timers ifneq ($(wildcard ../../../ocera.mk),) include ../../../ocera.mk else all: @echo -e "You should go to the ocera/ directory and do 'make' to generate the ocera.mk file first.\nThanks." endif # XSTLSTYLE=../../../component.xslt install: kernelset $(RTLINUX_DIR) install_examples documentation cp -fr include/* $(RTLINUX_DIR)/include cp -fr schedulers/* $(RTLINUX_DIR)/schedulers @tar cvf - monitor | tar xvf - -C $(RTLINUX_DIR)/ @if test -f $(PWD)/patches/rtlinux-3.2pre1_timers-0.1.patch ; then \ cd $(RTLINUX_DIR); patch -p1 < $(PWD)/patches/rtlinux-3.2pre1_timers-0.1.patch; \ fi install_examples: mkdir -p $(RTLINUX_DIR)/examples/ptimers/ cp -fr examples/* $(RTLINUX_DIR)/examples/ptimers/ documentation: @echo "Installing doc" @mkdir -p $(RTLINUX_DIR)/doc/$(COMPONENT_NAME) @mkdir -p $(RTLINUX_DIR)/doc/html/MAN/ @mkdir -p $(RTLINUX_DIR)/doc/man/man3/ @mkdir -p ./doc/html/MAN/ @mkdir -p ./doc/man/man3/ @mkdir -p ./doc/html/man for file in `(cd ./doc/man/; ls *.sgml)`; do \ TARGET=` echo $$file | awk -F \. '{ print $$1 }'`; \ echo "source: "$(PWD)/doc/man/$$file "dest: " $(RTLINUX_DIR)/doc/html/man/$$TARGET".3.html" ; \ docbook2html $(PWD)/doc/man/$$file 2> /dev/null ; \ mv index.html ./doc/html/man/$$TARGET".3.html" ; \ done echo "Installing man pages in "$(RTLINUX_DIR) for i in 3; do mkdir -p ./doc/man/man$$i ; done for i in ./doc/man/man3/*.3; do cp $$i $(RTLINUX_DIR)/doc/man/man3 ; done mkdir -p $(RTLINUX_DIR)/doc/html/man cp ./doc/html/man/*.html $(RTLINUX_DIR)/doc/html/man/ ; \ rm ./doc/html/man/*.html @echo "Installing pdf..." docbook2pdf $(PWD)/doc/$(COMPONENT_NAME)-info.xml mv $(PWD)/doc/$(COMPONENT_NAME)-info.pdf $(RTLINUX_DIR)/doc/$(COMPONENT_NAME)/ kernelset: @if [ ! -d $(RTLINUX_DIR) ] ; then \ echo "";\ echo "You should go to the ocera/ dir and do 'make'" ; \ echo "";\ fi clean: (cd src; make clean) rm -f *~ *.bak