1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#! /usr/bin/make -f
# Destinations compliant with Filesystem Hierarchy Standard (FHS) 2.1
# DESTDIR prefix required by Debian build process
CONFDIR=$(DESTDIR)/etc
PROGDIR=$(DESTDIR)/usr/bin
INSTDIR=$(DESTDIR)/usr/share/mtt
# DOCPATH and INFOPATH required by doc/Makefile
DOCDIR=$(DESTDIR)/usr/share/doc/mtt
INFODIR=$(DESTDIR)/usr/share/info
configure: configure-stamp
configure-stamp:
@touch configure-stamp
build: configure mtt.sh xmtt.sh build-stamp
build-cc:
|
>
>
>
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#! /usr/bin/make -f
# Destinations compliant with Filesystem Hierarchy Standard (FHS) 2.1
# DESTDIR prefix required by Debian build process
CONFDIR=$(DESTDIR)/etc
PROGDIR=$(DESTDIR)/usr/bin
INSTDIR=$(DESTDIR)/usr/share/mtt
# 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
build-cc:
|
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
clean-doc:
@touch clean-doc.sh
@-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
@-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
@install mtt.sh $(PROGDIR)/mtt
@install xmtt.sh $(PROGDIR)/xmtt
install-cc: build-cc clean-cc.sh
@install -d $(INSTDIR)/bin/trans
@install cc/parse_m2cc.exe $(INSTDIR)/bin/trans
install-doc: build-doc clean-doc.sh
@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)
.PHONY: FORCE
clean.sh: FORCE
@echo '#! /bin/sh' >>clean.sh
@echo '# This file is auto-generated - do not edit' >>clean.sh
@echo 'rm -f $(PROGDIR)/mtt $(PROGDIR)/xmtt' >>clean.sh
@echo 'rm -fr $(INSTDIR)' >>clean.sh
|
>
>
>
>
>
>
|
|
>
>
>
>
|
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
clean-doc:
@touch clean-doc.sh
@-chmod a+x clean-doc.sh
@./clean-doc.sh
@rm -f clean-doc.sh
@cd doc ; make -s clean
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)
@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
@install cc/parse_m2cc.exe $(INSTDIR)/bin/trans
install-doc: build-doc clean-doc.sh
@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
@echo 'rm -f $(PROGDIR)/mtt $(PROGDIR)/xmtt' >>clean.sh
@echo 'rm -fr $(INSTDIR)' >>clean.sh
|
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|
clean-doc.sh: FORCE
@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
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
@echo 'mtt_program_dir=$(PROGDIR)' >>mtt.sh.tmp
@echo 'mtt_install_dir=$(INSTDIR)' >>mtt.sh.tmp
|
>
>
>
>
>
|
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
|
clean-doc.sh: FORCE
@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
@echo 'mtt_program_dir=$(PROGDIR)' >>mtt.sh.tmp
@echo 'mtt_install_dir=$(INSTDIR)' >>mtt.sh.tmp
|