File: Makefile.dist

package info (click to toggle)
wcd 3.2.0-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 804 kB
  • ctags: 640
  • sloc: ansic: 8,260; makefile: 43; sh: 6; csh: 1
file content (81 lines) | stat: -rw-r--r-- 1,691 bytes parent folder | download
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
# Makefile to create files for binary distribution.
# unzip file wcd???bs.zip
# unpack file wcd-?.?.?-src.tar.gz
# edit BASE and LBASE variables
# run 'make' (use GNU make)
#
# For conio DOS versions make sure that
# binaries are compiled with conio and
# run 'make conio'
#
# Erwin Waterlander

BASE = wcd320
LBASE = wcd-3.2.0
DOC = $(BASE)/doc/wcd.txt \
	$(BASE)/doc/copying.txt \
	$(BASE)/doc/wcd.pdf

LDOC = $(LBASE)/wcd.txt \
	$(LBASE)/wcd.1 \
	$(LBASE)/copying.txt \
	$(LBASE)/wcd.pdf

OBJ = $(BASE)rm.zip \
	$(BASE)pm.zip \
	$(BASE)bh.zip \
	$(BASE)s.zip \
	$(LBASE)-win32.zip \
	$(LBASE)-win32zsh.zip \
	$(LBASE)-cygwin1.5.tar.gz \
	$(LBASE)-linux.tar.gz

CONIOOBJ = $(BASE)rm-conio.zip \
	$(BASE)pm-conio.zip \
	$(BASE)bh-conio.zip


all: $(OBJ)

conio: $(CONIOOBJ)

$(BASE)rm.zip : $(DOC) $(BASE)/dos16bit/wcd.exe
	zip $@ $+

$(BASE)pm.zip : $(DOC) $(BASE)/dos32bit/wcd.exe $(BASE)/dos32bit/cwsdpmi.exe
	zip $@ $+

$(BASE)bh.zip : $(DOC) $(BASE)/dos_bash/wcd.exe
	zip $@ $+

$(BASE)s.zip : $(BASE)bs.zip
	cp -f $< $@
	zip -d $@ $(BASE)/*/*.exe

$(LBASE)-win32.zip : $(DOC) $(BASE)/win32/wcdwin32.exe $(BASE)/win32/wcd.bat
	zip $@ $+

$(LBASE)-win32zsh.zip : $(DOC) $(BASE)/win32zsh/wcdwin32.exe
	zip $@ $+

$(LBASE)-cygwin1.5.tar.gz : $(DOC) $(BASE)/doc/wcd.1 $(BASE)/cygwin/wcd.exe
	tar cvzf $@ $+

$(LBASE)/wcd.exe :
	cd $(LBASE); $(MAKE) -f Makefile.ncurses.gcc

$(LBASE)-linux.tar.gz : $(LDOC) $(LBASE)/wcd.exe
	tar cvzf $@ $+

$(BASE)rm-conio.zip : $(DOC) $(BASE)/dos16bit/wcd.exe
	zip $@ $+

$(BASE)pm-conio.zip : $(DOC) $(BASE)/dos32bit/wcd.exe $(BASE)/dos32bit/cwsdpmi.exe
	zip $@ $+

$(BASE)bh-conio.zip : $(DOC) $(BASE)/dos_bash/wcd.exe
	zip $@ $+

clean:
	rm -f $(OBJ)