Index: mttroot/mtt/Makefile ================================================================== --- mttroot/mtt/Makefile +++ mttroot/mtt/Makefile @@ -8,10 +8,13 @@ # DOCPATH and INFOPATH required by doc/Makefile DOCDIR=$(DESTDIR)/usr/share/doc/mtt INFODIR=$(DESTDIR)/usr/share/info +# XFIG Libraries directory +XFIGDIR=$(DESTDIR)/usr/share/xfig/Libraries + configure: configure-stamp configure-stamp: @touch configure-stamp build: configure mtt.sh xmtt.sh build-stamp @@ -48,17 +51,23 @@ @-chmod a+x clean-doc.sh @./clean-doc.sh @rm -f clean-doc.sh @cd doc ; make -s clean -distclean: clean clean-cc clean-conf clean-doc +clean-xfig: + @touch clean-xfig.sh + @-chmod a+x clean-xfig.sh + @./clean-xfig.sh + @rm -f clean-xfig.sh + +distclean: clean clean-cc clean-conf clean-doc clean-xfig @-rm -f build-stamp configure-stamp config.log mtt.sh xmtt.sh install: build clean.sh clean-conf.sh @install -d $(INSTDIR) $(CONFDIR) $(PROGDIR) @cp -a bin cc doc lib $(INSTDIR) - @install bin/mttrc $(CONFDIR)/mtt.conf + @cat bin/mttrc | grep -v 'MTT_LIB/xfig' > $(CONFDIR)/mtt.conf @install mtt.sh $(PROGDIR)/mtt @install xmtt.sh $(PROGDIR)/xmtt install-cc: build-cc clean-cc.sh @install -d $(INSTDIR)/bin/trans @@ -68,10 +77,14 @@ @install -d $(DOCDIR) $(INFODIR) @cd doc ; DOCPATH=$(DOCDIR) INFOPATH=$(INFODIR) make -s install-doc @cd doc ; install Makefile mtt.info* mtt.pdf mtt.ps.gz $(DOCDIR) @install doc/mtt.info* $(INFODIR) +install-xfig: clean-xfig.sh + @install -d $(XFIGDIR) + @cp -a lib/xfig $(XFIGDIR)/MTT_Bond_Graph + .PHONY: FORCE clean.sh: FORCE @echo '#! /bin/sh' >>clean.sh @echo '# This file is auto-generated - do not edit' >>clean.sh @@ -92,10 +105,15 @@ @echo '#! /bin/sh' >>clean-doc.sh @echo '# This file is auto-generated - do not edit' >>clean-doc.sh @echo 'rm -fr $(DOCDIR)' >>clean-doc.sh @echo 'rm -f $(INFODIR)/mtt.info*' >>clean-doc.sh +clean-xfig.sh: FORCE + @echo '#! /bin/sh' >>clean-xfig.sh + @echo '# This file is auto-generated - do not edit' >>clean-xfig.sh + @echo 'rm -f $(XFIGDIR)/MTT_Bond_Graph' >>clean-xfig.sh + mtt.sh.tmp: @echo '#! /bin/sh' > mtt.sh.tmp @echo '# This file is auto-generated - do not edit' >>mtt.sh.tmp @echo '' >>mtt.sh.tmp @echo 'mtt_config_file=$(CONFDIR)/mtt.conf' >>mtt.sh.tmp Index: mttroot/mtt/debian/rules ================================================================== --- mttroot/mtt/debian/rules +++ mttroot/mtt/debian/rules @@ -51,11 +51,11 @@ dh_testroot dh_clean -k dh_installdirs # Add here commands to install the package into debian/mtt. - $(MAKE) install install-doc DESTDIR=$(CURDIR)/debian/mtt + $(MAKE) install install-doc install-xfig DESTDIR=$(CURDIR)/debian/mtt # Build architecture-independent files here. binary-indep: build install # We have nothing to do by default.