SUBDIRS= lib demo comedi_calibrate testing comedi_config
-DOCFILES= README INSTALL `find doc -type f`
+DOCFILES= README `find doc -type f`
INSTALLDIR=$(DESTDIR)/usr
INSTALLDIR_LIB=$(DESTDIR)/usr/lib
ifneq ($(DEB_BUILD_ARCH),)
INSTALLDIR_DOC=$(DESTDIR)/usr/share/doc/libcomedi
INSTALLDIR_MAN=$(DESTDIR)/usr/share/man
+INSTALLDIR_PERL=$(DESTDIR)/usr/lib/perl5/
else
INSTALLDIR_DOC=$(DESTDIR)/usr/doc/libcomedi
INSTALLDIR_MAN=$(DESTDIR)/usr/man
+INSTALLDIR_PERL=$(DESTDIR)/usr/lib/perl/
endif
INSTALLDIR_BIN=$(DESTDIR)/usr/bin
INSTALLDIR_SBIN=$(DESTDIR)/usr/sbin
install: dummy
install -d ${INSTALLDIR}/include
- (cd include;install -m 644 comedilib.h ${INSTALLDIR}/include)
- (cd include;install -m 644 comedi.h ${INSTALLDIR}/include)
+ install -m 644 include/comedilib.h ${INSTALLDIR}/include
+ install -m 644 include/comedi.h ${INSTALLDIR}/include
install lib/libcomedi.so.${version} ${INSTALLDIR_LIB}
(cd $(INSTALLDIR_LIB);ln -sf libcomedi.so.${version} libcomedi.so.${MAJOR})
(cd $(INSTALLDIR_LIB);ln -sf libcomedi.so.${version} libcomedi.so)
install -m 644 lib/libcomedi.a ${INSTALLDIR_LIB}
- #/sbin/ldconfig -n ${INSTALLDIR}/lib
ifneq ($(INSTALLDIR),)
install -d ${INSTALLDIR_DOC}
install ${DOCFILES} ${INSTALLDIR_DOC}
install -s -m 755 comedi_config/comedi_config ${INSTALLDIR_SBIN}
install -s -m 755 comedi_calibrate/comedi_calibrate ${INSTALLDIR_BIN}
+install_debian: install
+ install -d ${INSTALLDIR_DOC}
+ install -m 644 ${DOCFILES} ${INSTALLDIR_DOC}
+ install -d $(DESTDIR)/etc/pcmcia/
+ install -m 755 etc/pcmcia/comedi $(DESTDIR)/etc/pcmcia/
+ install -m 644 etc/pcmcia/comedi.conf $(DESTDIR)/etc/pcmcia/
+ install -m 644 etc/pcmcia/comedi.opts $(DESTDIR)/etc/pcmcia/
+ install -m 755 etc/das1600.conf $(INSTALLDIR_DOC)/examples
+ install -m 755 etc/dt282x.conf $(INSTALLDIR_DOC)/examples
+ifeq ($(with_perl),yes)
+ install -d $(INSTALLDIR_PERL)
+ install -m 644 perl/blib/lib/Comedi.pm $(INSTALLDIR_PERL)/
+ install -d $(INSTALLDIR_PERL)/Comedi
+ install -m 644 perl/blib/lib/Comedi/Lib.pm $(INSTALLDIR_PERL)/Comedi
+ install -m 644 perl/blib/lib/Comedi/Trigger.pm $(INSTALLDIR_PERL)/Comedi
+ install -m 644 perl/blib/arch/auto/Comedi/Lib/Lib.so $(INSTALLDIR_PERL)/Comedi
+ install -m 644 perl/blib/arch/auto/Comedi/Lib/Lib.bs $(INSTALLDIR_PERL)/Comedi
+ #install -m 644 perl/blib/arch/auto/Comedi/Trigger.so $(INSTALLDIR_PERL)/Comedi
+ #install -m 644 perl/blib/arch/auto/Comedi/Trigger.bs $(INSTALLDIR_PERL)/Comedi
+ install -m 644 perl/blib/arch/auto/Comedi/Comedi.so $(INSTALLDIR_PERL)/Comedi
+ install -m 644 perl/blib/arch/auto/Comedi/Comedi.bs $(INSTALLDIR_PERL)/Comedi
+endif
+ifeq ($(with_python),yes)
+endif
+
lpr: dummy
find . -name '*.[chs]'|xargs enscript -2r -pit.ps
clean: dummy
set -e;for i in $(SUBDIRS);do ${MAKE} clean -C $$i ; done
ifeq ($(with_python),yes)
- $(MAKE) -C python distclean
+ -$(MAKE) -C python distclean
+endif
+ifeq ($(with_perl),yes)
+ -$(MAKE) -C perl distclean
endif
distclean: clean
python: dummy
$(MAKE) -C python -f Makefile.pre.in boot
$(MAKE) -C python all
+
+perl: dummy
+ (cd perl;perl Makefile.PL)
+ $(MAKE) -C perl all
debian: dummy
chmod 755 debian/rules