File: Makefile

package info (click to toggle)
stopwatch 3.5-11
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 208 kB
  • sloc: tcl: 1,026; makefile: 26
file content (29 lines) | stat: -rw-r--r-- 909 bytes parent folder | download | duplicates (10)
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
VERSION = 3.4
FTPDIR = /proj/itl/www/div826/subject/expect/stopwatch

install:
	# There's nothing to install!  Simply run stopwatch!

stopwatch-$(VERSION).tar:
	rm -f ../stopwatch-$(VERSION)
	ln -s `pwd` ../stopwatch-$(VERSION)
	cd ..;tar cvfh $@ `pubfile stopwatch-$(VERSION)`
	mv ../$@ .

stopwatch-$(VERSION).tar.gz:	stopwatch-$(VERSION).tar
	gzip -fc stopwatch-$(VERSION).tar > $@

stopwatch.tcl.html: stopwatch
	echo '<xmp>' > stopwatch.tcl.html
	cat stopwatch >> stopwatch.tcl.html
	echo '</xmp>' >> stopwatch.tcl.html

# make a release and install it on ftp server
ftp:	stopwatch-$(VERSION).tar.gz stopwatch.tcl.html
	cp index.html tclet.html README HISTORY stopwatch.tcl.html $(FTPDIR)
	cp stopwatch-$(VERSION).tar.gz $(FTPDIR)/stopwatch.tar.gz
	cp stopwatch $(FTPDIR)/stopwatch.tcl
	cp stopwatch1.2 $(FTPDIR)/
	cp stopwatch.gif $(FTPDIR)
	rm stopwatch-$(VERSION).tar*
	ls -l $(FTPDIR)/stopwatch.tar*