File: rules

package info (click to toggle)
pngcheck 2.3.0-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 352 kB
  • ctags: 210
  • sloc: ansic: 4,942; makefile: 31
file content (46 lines) | stat: -rwxr-xr-x 684 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
#!/usr/bin/make -f

PACKAGE = pngcheck

include debian/debian-compile.mk

CFLAGS += -DUSE_ZLIB
LIBS	= -lz

man:
	$(MAKE) -C debian -f pod2man.mk PACKAGE=$(PACKAGE) makeman

override_dh_auto_build: man
	gcc $(CFLAGS) -o $(PACKAGE) $(PACKAGE).c $(LIBS)

install: build
	# target: install
	dh_testdir
	dh_prep
	dh_install

binary-arch: install
	# target: binary-arch -- Build architecture-dependent files
	dh_testdir
	dh_testroot
	dh_install
	dh_installdocs
	dh_installman
	dh_installchangelogs
	dh_strip
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary: binary-arch

%:
	dh $@

.PHONY: man install binary binary-arch

# End of file