File: rules.old

package info (click to toggle)
ircii-pana 75-2
  • links: PTS
  • area: main
  • in suites: slink
  • size: 4,448 kB
  • ctags: 7,556
  • sloc: ansic: 82,667; makefile: 989; tcl: 153; sh: 124
file content (58 lines) | stat: -rw-r--r-- 1,076 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
#!/usr/bin/make -f

build:
	$(checkdir)
	./configure
	make
	( cd ircname ; make )
	( cd dll ; make )
	touch build

clean:
	$(checkdir)
	rm -f build
	-make clean
	-( cd ircname ; make clean )
	rm -rf `find . -name "*~"`
	rm -rf debian/tmp debian/*/tmp debian/files* core
	chmod +x debian/install


binary-indep:	checkroot build
	$(checkdir)
	-rm -rf debian/tmp debian/*/tmp
	debian/install debian/bitchx-doc.files
	dpkg-gencontrol -pbitchx-doc
	dpkg --build debian/tmp doc.deb
	dpkg-name doc.deb
	mv *.deb ..

	-rm -rf debian/tmp debian/*/tmp
	debian/install debian/bitchx-lib.files
	dpkg-gencontrol -pbitchx-lib
	dpkg --build debian/tmp tmp.deb
	dpkg-name tmp.deb
	mv *.deb ..


binary-arch:	checkroot build
	$(checkdir)
	-rm -rf debian/tmp debian/*/tmp
	debian/install debian/bitchx-bin.files
	dpkg-gencontrol -pbitchx-bin
	dpkg --build debian/tmp tmp.deb
	dpkg-name tmp.deb
	mv *.deb ..


define checkdir
	test -f debian/rules
endef

binary:		binary-indep binary-arch

checkroot:
	$(checkdir)
	test root = "`whoami`"

.PHONY: binary binary-arch binary-indep clean checkroot