File: Makefile

package info (click to toggle)
combat 0.8.1-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, sid, stretch, wheezy
  • size: 1,408 kB
  • sloc: tcl: 10,461; sh: 2,535; makefile: 154; ansic: 73
file content (64 lines) | stat: -rwxr-xr-x 1,598 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
#
# This Makefile is primarily used to generate the distribution files
# directly from the CVS repository.
#

all:
	chmod +x bin/idl2tcl bin/iordump
	chmod +x demo/*/server.tcl
	chmod +x demo/*/client.tcl
	chmod +x demo/random/random
	chmod +x test/*/dotest
	chmod +x test/*/server.tcl

#
# To make files for distribution from CVS:
#
# make <dist> VERSION=\"<version>\" CVSTAG=\"<tag>\"
#  where:
#   <dist>    is tgz or zip, or "dist" for both
#   <version> is the file's version suffix
#   <tag>     is the CVS tag or date, e.g., \"-D now\"
#

.SUFFIXES:
.PHONY: dist tgz zip co

VERSION = current
CVSTAG = -D now
TGZDIST = gorilla-$(VERSION).tar.gz
ZIPDIST = gorilla-$(VERSION).zip

dist: tgz zip
tgz: $(TGZDIST)
zip: $(ZIPDIST)

$(TGZDIST): co
	(cd co ; tar cf ../combat-$(VERSION).tar combat-$(VERSION))
	gzip -9 combat-$(VERSION).tar

$(ZIPDIST): co
	(cd co/combat-$(VERSION) ; zip -r ../../combat-$(VERSION).zip *)

co:
	rm -rf co
	mkdir co
	(cd co ; cvs export $(CVSTAG) -d combat-$(VERSION) combat)
	$(MAKE) -C co/combat-$(VERSION)/doc
	rm -rf co/combat-$(VERSION)/C++ co/combat-$(VERSION)/idl2tcl-win32
	chmod +x co/combat-$(VERSION)/bin/idl2tcl co/combat-$(VERSION)/bin/iordump
	chmod +x co/combat-$(VERSION)/demo/*/server.tcl
	chmod +x co/combat-$(VERSION)/demo/*/client.tcl
	chmod +x co/combat-$(VERSION)/demo/random/random
	chmod +x co/combat-$(VERSION)/test/*/dotest
	chmod +x co/combat-$(VERSION)/test/*/server.tcl

clean:
	$(MAKE) -C test clean
	$(MAKE) -C bin clean
	rm -f demo/*/server.ior
	find . -name '*~' -exec rm {} \;
	rm -rf co

distclean: clean
	$(MAKE) -C bin distclean