Overview
Comment:Makefile -- initial version.

usage: [DESTDIR=/prefix/path] make install install-doc
export PATH=$PATH:$DESTDIR/usr/bin
edit $DESTDIR/etc/mtt.conf if required

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 288c29bf936aaafdce60a170c8a8efafae247409f759324e2bc7230a162a2cdf
User & Date: geraint@users.sourceforge.net on 2002-04-27 00:23:40
Other Links: branch diff | manifest | tags
Context
2002-04-27
09:27:18
Removed obsolete file struc2gnuplot_txt.cc.
trans/struc2gnuplot_txt2wish does a similar job much better.
check-in: 497d318d0a user: geraint@users.sourceforge.net tags: origin/master, trunk
00:23:40
Makefile -- initial version.

usage: [DESTDIR=/prefix/path] make install install-doc
export PATH=$PATH:$DESTDIR/usr/bin
edit $DESTDIR/etc/mtt.conf if required check-in: 288c29bf93 user: geraint@users.sourceforge.net tags: origin/master, trunk

2002-04-26
23:19:00
Fixed path to info files for "mtt info". check-in: c127992115 user: geraint@users.sourceforge.net tags: origin/master, trunk
Changes

Added mttroot/mtt/Makefile version [1aeaa8992d].

















































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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
80
81
82
83
84
85
86
87
88
#! /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 build-stamp
build-stamp:
	@touch build-stamp

clean:
	@touch clean.sh
	@-chmod a+x clean.sh
	@./clean.sh
	@rm -f clean.sh

clean-doc:
	@touch clean-doc.sh
	@-chmod a+x clean-doc.sh
	@./clean-doc.sh
	@rm -f clean-doc.sh

distclean: clean clean-doc
	@-rm -f build-stamp configure-stamp config.log mtt.sh

install: build clean.sh
	@-mkdir -p $(INSTDIR) $(CONFDIR) $(PROGDIR)
	@cp -a bin/mttrc $(CONFDIR)/mtt.conf
	@cp -a bin cc lib $(INSTDIR)
	@mv -f mtt.sh $(PROGDIR)/mtt
	@chmod -f a+rx $(PROGDIR)/mtt $(CONFDIR)/mtt.conf

install-doc: clean-doc.sh
	@-mkdir -p $(DOCDIR) $(INFODIR)
	@cd doc ; DOCPATH=$(DOCDIR) INFOPATH=$(INFODIR) make -s install-doc

.PHONY: FORCE

clean.sh: FORCE
	@echo '#! /bin/sh'						>>clean.sh
	@echo '# This file is auto-generated - do not edit'		>>clean.sh
	@echo 'rm -f  $(CONFDIR)/mtt.conf'				>>clean.sh
	@echo 'rm -f  $(PROGDIR)/mtt'					>>clean.sh
	@echo 'rm -fr $(INSTDIR)'					>>clean.sh

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:
	@echo '#! /bin/sh'						> mtt.sh
	@echo '# This file is auto-generated - do not edit'		>>mtt.sh
	@echo ''							>>mtt.sh
	@echo 'mtt_config_file=$(CONFDIR)/mtt.conf'			>>mtt.sh
	@echo 'mtt_program_dir=$(PROGDIR)'				>>mtt.sh
	@echo 'mtt_install_dir=$(INSTDIR)'				>>mtt.sh
	@echo ''							>>mtt.sh
	@echo '# get site-specific settings'				>>mtt.sh
	@echo 'if [[ -r $${mtt_config_file} ]]; then'			>>mtt.sh
	@echo '   . $${mtt_config_file} $${mtt_install_dir}'		>>mtt.sh
	@echo ''							>>mtt.sh
	@echo 'elif [[ -r $${mtt_install_dir}/bin/mttrc ]]; then'	>>mtt.sh
	@echo '   . $${mtt_install_dir}/bin/mttrc $${mtt_install_dir}'	>>mtt.sh
	@echo 'fi'							>>mtt.sh
	@echo ''							>>mtt.sh
	@echo '# get user-specific settings'				>>mtt.sh
	@echo 'if [[ -r $${HOME}/.mttrc ]]; then'			>>mtt.sh
	@echo '   . $${HOME}/.mttrc'					>>mtt.sh
	@echo 'fi'							>>mtt.sh
	@echo ''							>>mtt.sh
	@echo '# get directory-specific settings'			>>mtt.sh
	@echo 'if [[ -r ./.mttrc ]]; then'				>>mtt.sh
	@echo '   . ./.mttrc'						>>mtt.sh
	@echo 'fi'							>>mtt.sh
	@echo ''							>>mtt.sh
	@cat bin/mtt							>>mtt.sh


MTT: Model Transformation Tools
GitHub | SourceHut | Sourceforge | Fossil RSS ]