-
Notifications
You must be signed in to change notification settings - Fork 25
/
Makefile
105 lines (80 loc) · 2.7 KB
/
Makefile
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
#
# Makefile redesigned for netgen-1.3
#
NETGENDIR = .
PROGRAMS = netgen python
MODULES = base
MAKEFLAGS =
INSTALL_CAD_DIRS = lib doc
-include defs.mak
all: $(ALL_TARGET)
standard:
@echo --- errors and warnings logged in file make.log
@${MAKE} mains 2>&1 | tee -a make.log
tcl:
@echo --- errors and warnings logged in file make.log
@${MAKE} tcllibrary 2>&1 | tee -a make.log
force: clean all
defs.mak:
@echo No \"defs.mak\" file found. Run "configure" to make one.
config:
${NETGENDIR}/configure
tcllibrary: modules
@echo --- making Tcl shared-object libraries
for dir in ${PROGRAMS}; do \
(cd $$dir && ${MAKE} tcl-main); done
mains: modules
@echo --- making main programs
for dir in ${PROGRAMS}; do \
(cd $$dir && ${MAKE} main); done
modules:
@echo --- making modules
for dir in ${MODULES}; do \
(cd $$dir && ${MAKE} module); done
depend:
for dir in ${MODULES} ${PROGRAMS}; do \
(cd $$dir && ${MAKE} depend); done
install: $(INSTALL_TARGET)
install-netgen:
@echo --- installing executable to $(DESTDIR)${INSTALL_BINDIR}
@echo --- installing run-time files to $(DESTDIR)${INSTALL_LIBDIR}
@${MAKE} install-real >> install.log
install-real: install-dirs
for dir in ${PROGRAMS} ${INSTALL_CAD_DIRS}; do \
(cd $$dir && ${MAKE} install); done
install-tcl-dirs:
${NETGENDIR}/scripts/mkdirs $(DESTDIR)${INSTALL_BINDIR} \
$(DESTDIR)${INSTALL_TCLDIR} $(DESTDIR)${INSTALL_PYDIR}
install-dirs:
${NETGENDIR}/scripts/mkdirs $(DESTDIR)${INSTALL_BINDIR}
install-tcl: install-dirs
@echo --- installing executable to $(DESTDIR)${INSTALL_BINDIR}
@echo --- installing run-time files to $(DESTDIR)${INSTALL_LIBDIR}
@${MAKE} install-tcl-real 2>&1 >> install.log
install-tcl-real: install-tcl-dirs
for dir in ${INSTALL_CAD_DIRS} ${PROGRAMS}; do \
(cd $$dir && ${MAKE} install-tcl); done
clean:
for dir in ${MODULES} ${PROGRAMS} ${UNUSED_MODULES}; do \
(cd $$dir && ${MAKE} clean); done
${RM} *.tmp */*.tmp *.sav */*.sav *.log TAGS tags
distclean:
touch defs.mak
@${MAKE} clean
${RM} defs.mak old.defs.mak ${NETGENDIR}/scripts/defs.mak
${RM} ${NETGENDIR}/scripts/default.conf
${RM} ${NETGENDIR}/scripts/config.log ${NETGENDIR}/scripts/config.status
${RM} scripts/netgen.spec netgen-`cat VERSION` netgen-`cat VERSION`.tgz
${RM} *.log
dist:
${RM} scripts/netgen.spec netgen-`cat VERSION` netgen-`cat VERSION`.tgz
sed -e /@VERSION@/s%@VERSION@%`cat VERSION`% \
scripts/netgen.spec.in > scripts/netgen.spec
ln -nsf . netgen-`cat VERSION`
tar zchvf netgen-`cat VERSION`.tgz --exclude CVS \
--exclude netgen-`cat VERSION`/netgen-`cat VERSION` \
--exclude netgen-`cat VERSION`/netgen-`cat VERSION`.tgz \
netgen-`cat VERSION`
clean-mains:
for dir in ${PROGRAMS}; do \
(cd $$dir && ${RM} $$dir); done