File: rules

package info (click to toggle)
pilrc 2.4-2
  • links: PTS
  • area: main
  • in suites: potato
  • size: 524 kB
  • ctags: 1,121
  • sloc: ansic: 6,584; asm: 137; makefile: 55
file content (53 lines) | stat: -rwxr-xr-x 1,009 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
#!/usr/bin/make -f

package=pilrc
DEST=$(PWD)/debian/tmp
ANAME=m68k-palmos-coff
ADIR=$(DEST)/usr/$(ANAME)

build:
	dh_testdir
	xmkmf
	make CC="gcc -I/usr/lib/glib/include -O2 -Wall"
	touch build

clean: checkroot
	-rm -f build
	-make clean
	-rm Makefile
	dh_clean

binary-indep: checkroot build

# 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
	-rm -rf debian/tmp
	dh_installdirs
	install -s pilrc $(ADIR)/bin ; \
	install -s pilrcui $(DEST)/usr/X11R6/bin
	echo /usr/$(ANAME)/bin/pilrc /usr/bin/pilrc > debian/links
	dh_installdocs readme.txt fonts/pilfont.zip
	dh_installexamples example/* 
	dh_installchangelogs
	dh_installmanpages
	dh_link
	dh_strip
	dh_compress
	dh_fixperms
	dh_shlibdeps
	dh_gencontrol
	dh_makeshlibs
	dh_installdeb
	dh_md5sums
	dh_builddeb

binary: binary-indep binary-arch

checkroot:
	dh_testdir
	dh_testroot

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