File: rules

package info (click to toggle)
aribas 1.20-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,024 kB
  • ctags: 2,086
  • sloc: ansic: 20,568; asm: 406; pascal: 288; lisp: 133; makefile: 71; sh: 32
file content (62 lines) | stat: -rwxr-xr-x 1,237 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
#!/usr/bin/make -f

#export DH_VERBOSE=1
export DH_COMPAT=3

build: build-stamp
build-stamp:
	dh_testdir

ifeq ($(arch),i386)
	cp src/LINUX/arito386.S src
	cp src/LINUX/Makefile.linux src
	cd src;\
	 make -f Makefile.linux CC=$(CC) CFLAGS="-g -DLiNUX -DPROTO\
		 -O3 -Wall -pedantic" ASSOBJECTS=arito386.o
else 
	cp src/LINUX/Makefile.linux src	
	cd src;\
	 make -f Makefile.linux CC=$(CC) CFLAGS="-g -DUNiX  -DPROTO\
		 -O3 -Wall -pedantic" ASSOBJECTS=''
endif

	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp
	cd src; rm -f *.o aribas
	-cd src; rm arito386.S; rm Makefile.linux
	dh_clean

install: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs
	install -m 755 src/aribas debian/aribas/usr/bin
	cp src/EL/aribas.el debian/aribas/usr/share/emacs/site-lisp/aribas
	cp src/aribas.hlp debian/aribas/usr/lib/aribas

binary-indep: build install

binary-arch: build install
	dh_testdir
	dh_testroot
	dh_installdocs
	dh_installexamples examples/*
	dh_installemacsen
	dh_installmanpages
	dh_installchangelogs
	dh_strip
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install