# Copyright (C) OCERA Consortium. # Author Josep Vidal & Ismael Ripoll ######################## Variables to customise. # Name of the component COMPONENT=signals # Directory where the kernels are located KERNELS= RTLINUX=$(KERNELS)/rtlinux-3.1 # XSTLSTYLE=../../../component.xslt install: kernelset $(RTLINUX) install_examples install_doc @if test -f $(PWD)/patches/rtlinux-3.1_signals-0.1.patch ; then \ cd $(RTLINUX); patch -p1 < $(PWD)/patches/rtlinux-3.1_signals-0.1.patch; \ fi install_examples: @echo "Copying signals examples & bugs found" @cp -fr examples/* $(RTLINUX)/examples/ install_doc: @echo "Installing doc" @mkdir -p $(RTLINUX)/doc/$(COMPONENT) @cp -fr $(COMPONENT)-info.pdf $(RTLINUX)/doc/$(COMPONENT) @cp -fr doc/html/MAN/* $(RTLINUX)/doc/html/MAN/ @cp -fr doc/man/man3/* $(RTLINUX)/doc/man/man3/ doc: pdf pdf: gv $(COMPONENT)-info.pdf & 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