File: rules

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 (92 lines) | stat: -rwxr-xr-x 2,671 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
#!/usr/bin/make -f
# -*- makefile -*- made with the aid of debmake, by Christoph Lameter,
# based on the sample debian/rules file for GNU hello by Ian Jackson.

package=bitchx

SHELL=/bin/bash


stamp-configure:
	CC="cc -DD3BIAN" ./configure --with-non-blocking=posix \
		--with-default-server=irc.debian.org:6667 \
		--prefix=/usr
	touch stamp-configure


build: stamp-configure
	$(checkdir)
	$(MAKE) IRCLIB=/usr/lib/bitchx
	cd dll/mp3 && $(MAKE) SHLIB_LD="ld -shared"
	cd dll && $(MAKE) SHLIB_LD="ld -shared"
	touch build


clean:
	$(checkdir)
	-$(MAKE) distclean
	-cd dll && $(MAKE) distclean
	rm -rf $$(find . -name "*.so") $$(find . -name "*.o") config.log
	rm -rf $$(find . -name "*~") $$(find debian/* -type d) stamp-configure
	rm -rf debian/files* core debian/*substvars* debian/vga11* build psplay
	find .. -name ircii-pana*dsc.asc -size 0 -maxdepth 1 -exec rm {} ";"
	dh_clean
	chmod +x debian/xbitchx


binary-indep:	checkroot build
	$(checkdir)
# There are no architecture-independent files to be uploaded
# generated by this package.  If there were any they would be
# made here.


binary-arch:	checkroot build
	$(checkdir)
	dh_clean -v
	dh_installdirs
#	cp -a bxhelp/faq/* debian/tmp/usr/doc/$(package)/faq
# 	cp -a bxhelp/epicdocs/ debian/tmp/usr/doc/$(package)/html
#	cp -a bxhelp/list/* debian/tmp/usr/doc/$(package)/internals
#	cp -a bxhelp/doc/BitchX.* bxhelp/doc/bitch52.xpm \
#		debian/tmp/usr/doc/$(package)
	dh_installdocs doc/* BitchX.* include/config.h 
	find debian/tmp/usr/doc -type f -exec chmod 644 {} \;
	dh_installmenu
	cd debian && uudecode vga.uue && tar -zxvf vga11x19.tar.gz
	dh_installchangelogs Changes debian/vga11x19.README
	install source/BitchX debian/tmp/usr/bin/bitchx
	install source/{wserv,scr-bx} debian/tmp/usr/lib/bitchx
	install debian/xbitchx debian/tmp/usr/bin/xbitchx
	install -m 644 dll/*.so BitchX.* debian/tmp/usr/lib/bitchx
	cp debian/vga11x19.pcf debian/tmp/usr/X11R6/lib/X11/fonts/misc
	cp debian/bitchx.1 debian/tmp/usr/man/man1/bitchx.1
	ln -sf bitchx.1.gz debian/tmp/usr/man/man1/xbitchx.1.gz
	gzip -v9 debian/tmp/usr/X11R6/lib/X11/fonts/misc/*.pcf
	cp -p debian/bxglobal debian/tmp/etc/bitchx/bxglobal
#	cp -pa help debian/tmp/usr/doc/bitchx/help
	dh_compress
#	cd debian/tmp && mv -v usr/doc/bitchx/help usr/lib/bitchx/help
	dh_strip -v
	dh_installdeb
	dh_shlibdeps -v
	dh_gencontrol
	dh_md5sums
	chown -R root.root debian/tmp
	chmod -R go=rX debian/tmp
	dpkg --build debian/tmp ..


define checkdir
	test -f debian/rules
endef

# Below here is fairly generic really

binary:		binary-indep binary-arch

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

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