From: David Schleef Date: Wed, 27 Jun 2001 22:21:45 +0000 (+0000) Subject: Added install targets for perl, python, debian X-Git-Tag: r0_7_16~49 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=12cffb219c1a186587bb29d8b06ea5c8932298d2;p=comedilib.git Added install targets for perl, python, debian --- diff --git a/Makefile b/Makefile index 2d5deab..4254850 100644 --- a/Makefile +++ b/Makefile @@ -29,16 +29,18 @@ all: $(TARGETS) 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 @@ -49,13 +51,12 @@ config: dummy 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} @@ -65,6 +66,31 @@ endif 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 @@ -74,7 +100,10 @@ subdirs: dummy 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 @@ -82,6 +111,10 @@ 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