-
Notifications
You must be signed in to change notification settings - Fork 26
/
Makefile
102 lines (75 loc) · 2.11 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
#######################################################################
# Copyright (c) 1998 Gary William Flake -- Permission granted for any
# use provied that the author's comments are neither modified nor
# removed. No warranty is given or implied.
#######################################################################
default: progs
all: progs man html
docs: man html
progs: FORCE
cd bin; make
man: FORCE
cd man; make
html: FORCE
cd html; make
FORCE:
#######################################################################
clean:
cd bin; make clean
veryclean: clean
cd man; make clean
cd html; make clean
tar:
make veryclean
n=`pwd`; n=`basename $$n`; cd ..; tar cfz $$n.tgz $$n
../code.tgz: tar
dotar: ../code.tgz
mcopy -o ../code.tgz a:
#######################################################################
all-dists: all-linux-dists
make clean; make docs
#
rm -f ../html/cbn-win-bin.zip
cp ../arch/win/*.exe bin
cd ../..; zip -r cbn/html/cbn-win-bin.zip cbn/code
rm bin/*.exe
#
cp ../arch/sun/* bin
cd ../..; tar cvvfz cbn/html/cbn-sunos-bin.tgz cbn/code
make clean
all-linux-dists:
make veryclean
cd ../..; tar cvvfz cbn/html/cbn-noarch-src.tgz cbn/code
make docs
cd ../..; tar cvvfz cbn/html/cbn-noarch-src+docs.tgz cbn/code
rm ../html/cbn-noarch-src+docs.zip
cd ../..; zip -r cbn/html/cbn-noarch-src+docs.zip cbn/code
make all
rm bin/*.[oa]
cd ../..; tar cvvfz cbn/html/cbn-linux-bin.tgz cbn/code
cbn-noarch-src.tgz:
make veryclean
cd ../..; tar cvvfz cbn/html/$@ cbn/code
cbn-noarch-src+docs.tgz:
make veryclean; make docs
cd ../..; tar cvvfz cbn/html/$@ cbn/code
cbn-noarch-src+docs.zip:
make clean; make docs
rm -f ../html/$@
cd ../..; zip -r cbn/html/$@ cbn/code
cbn-linux-bin.tgz:
make all
rm bin/*.[oa]
cd ../..; tar cvvfz cbn/html/$@ cbn/code
cbn-win-bin.zip:
make clean; make docs
rm -f ../html/$@
cp ../arch/win/*.exe bin
cd ../..; zip -r cbn/html/$@ cbn/code
rm bin/*.exe
cbn-sunos-bin.tgz:
make clean; make docs
cp ../arch/sun/* bin
cd ../..; tar cvvfz cbn/html/$@ cbn/code
make clean
#######################################################################