File: GNUmakefile

package info (click to toggle)
linuxtrade 3.65-6
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,880 kB
  • ctags: 1,969
  • sloc: ansic: 30,091; sh: 2,278; perl: 566; makefile: 126
file content (165 lines) | stat: -rw-r--r-- 3,477 bytes parent folder | download | duplicates (2)
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
#
#	Extra makefile targets
#
#	I couldn't be bothered to take the time to make these
#	play nicely with the horrid autoconf/configure mechanism.
#
include Makefile

NULL=

HTML= \
	index.html \
	linuxtrade.1.html \
	linuxtrade.1-*.png \
	TODO.txt \
	banner*.gif \
	screen*.gif \
	sound*.wav \
	screen*.html \
	ChangeLog.txt \
	linuxtrade.1.pdf \
	linuxlinks.gif \
	iwalk88x30_2.gif \
	fmlogo.gif \
	linuxapps.gif \
	version.txt \
	$(NULL)

REGHTML= \
	reggate.html \
	register.html \
	regprob.html \
	reg1.js \
	reg2.js \
	$(NULL)

RPM= \
	tmp/RPMS/i386/$(PACKAGE)-$(VERSION)-$(RPM_RELEASE).i386.rpm \
	$(NULL)

TARBALL=$(PACKAGE)-$(VERSION).tar.gz
CYGBALL=$(PACKAGE)-$(VERSION)-cygwin.tar.gz

BACKSITE=~/.ncftp-website
BACKDIR=backup/$(PACKAGE)
WEBSITE=~/.ncftp-linuxtrade
WEBDIR=.

#
#	Populate website
#
version.txt: configure.in
	echo "$(PACKAGE)-$(VERSION)-$(RPM_RELEASE)" > $@

.lastupload:
	touch -d 00/00/00 $@

.lastbeta:
	touch -d 00/00/00 $@

rmstamp:
	rm -f .lastupload

weball: rmstamp web

SRC=backup
SRC=src
web:	dist rpm $(HTML) linuxtrade.1.pdf .lastupload
	NFILES=`find $(HTML) -newer .lastupload`; \
	ncftpput -m -f $(WEBSITE) $(WEBDIR) $$NFILES \
	&& ncftpput -m -f $(WEBSITE) $(WEBDIR)/RPMS $(RPM) \
	&& ncftpput -m -f $(WEBSITE) $(WEBDIR)/$(SRC) $(TARBALL) \
	&& touch .lastupload
	./ncftpdir2html -f $(WEBSITE) $(WEBDIR)/RPMS > tmp/index.html \
		|| exit 1
	ncftpput -m -f $(WEBSITE) $(WEBDIR)/RPMS tmp/index.html;
	./ncftpdir2html -x -f $(WEBSITE) $(WEBDIR)/$(SRC) > tmp/index.html \
		|| exit 1
	ncftpput -m -f $(WEBSITE) $(WEBDIR)/$(SRC) tmp/index.html;

webhtml: $(HTML) .lastupload
	NFILES=`find  $(HTML) -newer .lastupload`; \
	ncftpput -m -f $(WEBSITE) $(WEBDIR) $$NFILES && touch .lastupload

webindex: index.html
	ncftpput -m -f $(WEBSITE) $(WEBDIR) index.html;

beta:	dist rpm $(HTML) linuxtrade.1.pdf .lastbeta
	NFILES=`find $(HTML) -newer .lastbeta`; \
	ncftpput -m -f $(WEBSITE) $(WEBDIR)/beta $$NFILES \
	&& ncftpput -m -f $(WEBSITE) $(WEBDIR)/beta/RPMS $(RPM) \
	&& touch .lastbeta

#
#	CygWin binary tarball (run this target under Cygwin)
#
cygwin:
	rm -rf /tmp/usr
	$(MAKE) install-strip prefix=/tmp/usr
	(cd /tmp; tar cvf - usr) | gzip > $(CYGBALL)

cygweb:
	mount-vmware;
	ncftpput -m -f $(WEBSITE) $(WEBDIR)/cygwin \
		/mnt/vmware/cygwin/home/rick/lt2/$(CYGBALL);
	./ncftpdir2html -f $(WEBSITE) $(WEBDIR)/cygwin > tmp/index.html \
		|| exit 1
	ncftpput -m -f $(WEBSITE) $(WEBDIR)/cygwin tmp/index.html;
	root umount /mnt/vmware;

#
#	compile farm
#
cf:	dist
	scp $(TARBALL) rickrich@shell.sf.net:

#
#	Source code backup
#
backup: rmold
	ncftpput -m -f $(BACKSITE) $(BACKDIR) $(PACKAGE)-$(VERSION).tar.gz;

rmold:
	./ncftprm -f $(BACKSITE) $(BACKDIR) '*.tar.gz'

#
#	Documentation
#
.SUFFIXES: .1 .pdf .html

GROFF=groff
GROFF=/usr/local/test/bin/groff

linuxtrade.1.pdf: linuxtrade.1 GNUmakefile
	$(GROFF) -t -man linuxtrade.1 | ps2pdf - $@

linuxtrade.1.html: linuxtrade.1 GNUmakefile
	$(GROFF) -P-Ilinuxtrade.1 -P-o0 -P-i100 -t -man -Thtml linuxtrade.1 \
		| sed 's#</table>#&<br>#' > $@ || rm $@

TODO.txt: TODO
	cp -a TODO $@

ChangeLog.txt: ChangeLog
	cp -a ChangeLog $@

#
#	Tag release
#
tag:
	TAG=`echo "v$(VERSION)_$(RPM_RELEASE)" | sed 's/\./_/'`; \
		cvs tag -F "$$TAG"

allclean: distclean
	-rm -rf tmp
	-rm -f linuxtrade*.tar.gz
	-rm -f linuxtrade.1*.png
	-rm -f linuxtrade.1.html
	-rm -f linuxtrade.1.pdf
	-rm -f ChangeLog.txt
	-rm -f TODO.txt
	-rm -f core core.*

sendlsm:
	mutt -s add LSM@execpc.com < linuxtrade.lsm