-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
53 lines (42 loc) · 975 Bytes
/
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
#List of files/directories to make tgz file
FILES=nuwtun/src-flo \
nuwtun/src-adj \
nuwtun/src-grd \
nuwtun/src-opt \
nuwtun/src-utl \
nuwtun/docs \
nuwtun/makefile \
nuwtun/makefile.in \
nuwtun/README
#Things to exclude in the above list
EXCLU=nuwtun/docs/tree
#Name of tgz file
TGZFILE=nuwtun.tgz
all: flo adj grd opt utl
flo:
@cd src-flo && make
adj:
@cd src-adj && make
grd:
@cd src-grd && make
opt:
@cd src-opt && make
utl:
@cd src-utl && make
tgz:
cd src-flo && make cleanall
cd src-adj && make clean
cd .. && tar zcvf $(TGZFILE) $(FILES) --exclude "$(EXCLU)" --exclude ".svn"
@echo "TGZ file is ../$(TGZFILE)"
clean:
cd src-flo && make clean
cd src-adj && make clean
cd src-grd && make clean
cd src-opt && make clean
cd src-utl && make clean
cleanall:
cd src-flo && make cleanall
cd src-adj && make cleanall
cd src-grd && make cleanall
cd src-opt && make cleanall
cd src-utl && make cleanall