File: Makefile

package info (click to toggle)
sarien 0.7.0-1
  • links: PTS
  • area: contrib
  • in suites: woody
  • size: 1,864 kB
  • ctags: 2,543
  • sloc: ansic: 18,542; sh: 2,363; cpp: 1,371; makefile: 523; objc: 438; perl: 51
file content (97 lines) | stat: -rw-r--r-- 2,139 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# Sarien toplevel Makefile
# $Id: Makefile,v 1.10 2001/09/04 02:17:00 almightyjustin Exp $

# DIST		distribution package name
# DFILES	standard distribution files 
# DDIRS		standard distribution directories

include Version

PKG	= sarien
XCFLAGS	= -Iloaders/include
DIST	= $(PKG)-$(VERSION)
DFILES	= configure configure.in Makefile Makefile.wat Makefile.dj \
	  Makefile.tc Sarien.make Sarien.DICE Rules.in Rules.dj Version \
	  README
DDIRS	= VC++6.0 OSX-ProjectBuilder eVC3 doc scripts bin debian etc lib \
	  src rulesets
CFILES	=
DCFILES	= Rules config.log config.status config.cache

all:
	for i in $(DDIRS); do \
		(cd $$i; [ -f $(MAKEFILE) ] && $(MAKE) $@) \
	done; true
	
include Rules

clean::
	rm -f config.cache config.log

distclean::
	rm -f Rules

configure: configure.in
	autoconf

check: test

dust:
	@echo "<cough, cough>"

# Extra targets:
# 'dist' prepares a distribution package
# 'mark' marks the last RCS revision with the package version number
# 'whatsout' lists the locked files
# 'diff' creates a diff file
# 'rpm' generates an RPM package

dist:
	rm -Rf $(DIST) $(DIST).tar.gz
	mkdir $(DIST)
	$(MAKE) DISTDIR=$(DIST) subdist
	chmod -R u+w $(DIST)/*
	tar cvf - $(DIST) | gzip -9c > $(DIST).tar.gz
	rm -Rf $(DIST)
	./config.status
	sync
	ls -l $(DIST).tar.gz

bz2:
	zcat $(DIST).tar.gz | bzip2 > $(DIST).tar.bz2

bindist:
	$(MAKE) _bindist1 CONFIGURE="./configure"

binpkg: bindist $(PORTS)

_bindist1:
	rm -Rf $(DIST)
	gzip -dc $(DIST).tar.gz | tar xvf -
	cd $(DIST); $(CONFIGURE); $(MAKE) _bindist2
	rm -Rf $(DIST)
	sync

chkoldver:
	@if [ "$(OLDVER)" = "" ]; then \
	    echo "parameter missing: OLDVER=<old_version>"; \
	    false; \
	fi

diff: chkoldver
	@if [ "$(OLDVER)" != "none" ]; then \
	    echo "Creating diff from $(OLDVER) to $(VERSION)"; \
	    rm -Rf $(PKG)-$(OLDVER) $(PKG)-$(VERSION); \
	    tar xzf $(PKG)-$(OLDVER).tar.gz; \
	    tar xzf $(PKG)-$(VERSION).tar.gz; \
	    diff -rud --new-file $(PKG)-$(OLDVER) $(PKG)-$(VERSION) | \
		gzip -9c > $(PKG)-$(VERSION).diff.gz; \
	    rm -Rf $(PKG)-$(OLDVER) $(PKG)-$(VERSION); \
	    sync; \
	fi

Rules: Rules.in
	./config.status

$(OBJS): Makefile