File: rules

package info (click to toggle)
asmodem 0.60-11
  • links: PTS
  • area: main
  • in suites: woody
  • size: 92 kB
  • ctags: 57
  • sloc: ansic: 427; makefile: 48
file content (63 lines) | stat: -rwxr-xr-x 1,171 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
#!/usr/bin/make -f
package=asmodem

DH_COMPAT=2
export DH_COMPAT


build: build-stamp
build-stamp:
	dh_testdir
	
	xmkmf	
	make CFLAGS="-O2 -g -Wall"
	-@mv asmodem.man asmodem.1
	touch build-stamp

install: build

	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs

	install -d -m755 -oroot -groot $(CURDIR)/debian/$(package)/usr/share/man/man1/
	install -d -m755 -oroot -groot $(CURDIR)/debian/$(package)/usr/bin
	install -c -m644 asmodem.1 $(CURDIR)/debian/$(package)/usr/share/man/man1/


	make install DESTDIR=$(CURDIR)/debian/$(package)
	install -c -m755 $(CURDIR)/debian/$(package)/usr/X11R6/bin/asmodem \
		$(CURDIR)/debian/$(package)/usr/bin/
	rm -rf $(CURDIR)/debian/$(package)/usr/X11R6

clean:
	dh_testdir
	dh_testroot
	-rm -f build-stamp
	-make clean
	-rm -rf debian/asmodem
	-rm -f Makefile
	-@mv asmodem.1 asmodem.man
	-rm -f `find . -name "*~"`
	dh_clean

binary-indep: build

binary-arch: build install
	dh_testdir
	dh_testroot
	dh_strip
	dh_installdocs
	dh_installchangelogs
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary:	binary-indep binary-arch

.PHONY: binary binary-arch binary-indep clean