Added install targets for perl, python, debian

This commit is contained in:
David Schleef 2001-06-27 22:21:45 +00:00
parent ac0985e453
commit 12cffb219c

View file

@ -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