# Copyright (C) OCERA Consortium. # Author Patricia Balbastre & Josep Vidal & Ismael Ripoll ######################## Variables to customise. # Name of the component COMPONENT=pbarriers # Directory where the kernels are located KERNELS= RTLINUX=$(KERNELS)/rtlinux-3.2-pre1 # XSTLSTYLE=../../../component.xslt install: kernelset $(RTLINUX) install_examples documentation @if test -f $(PWD)/patches/rtlinux-3.2pre1_pbarriers-0.1.patch ; then \ cd $(RTLINUX); patch -p1 < $(PWD)/patches/rtlinux-3.2pre1_pbarriers-0.1.patch; \ fi install_examples: @echo "Copying signals examples" mkdir -p $(RTLINUX)/examples/pbarriers/ @cp -fr examples/* $(RTLINUX)/examples/pbarriers/ documentation: @echo "Installing doc" # @mkdir -p $(RTLINUX)/doc/$(COMPONENT) # @mkdir -p $(RTLINUX)/doc/html/MAN/ # @mkdir -p $(RTLINUX)/doc/man/man3/ # @mkdir -p $(RTLINUX)/doc/html/man # @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)/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) # for i in 3; do mkdir -p ./doc/man/man$$i ; done # for i in ./doc/man/man3/*.3; do cp $$i $(RTLINUX)/doc/man/man3 ; done # cp ./doc/html/man/*.html $(RTLINUX)/doc/html/man/ ; \ # rm ./doc/html/man/*.html @echo "Installing pdf" docbook2pdf $(PWD)/doc/$(COMPONENT)-info.xml mv $(PWD)/doc/$(COMPONENT)-info.pdf $(RTLINUX)/doc/$(COMPONENT)/ clean: (cd src; make clean) rm -f *~ *.bak kernelset: @if [ ! -d $(RTLINUX) ] ; then \ echo "";\ echo "KERNELS Makefile variable not set." ; \ echo "It must point to the directory where RTLinux code is located.";\ echo "Please, edit the Makefile and set KERNELS variable.";\ echo "";\ fi