File: rules

package info (click to toggle)
genromfs 0.5.2-4
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 180 kB
  • sloc: ansic: 1,930; makefile: 118; sh: 14
file content (46 lines) | stat: -rwxr-xr-x 817 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
#
# Copyright 1997-2007 Juan Cespedes <cespedes@debian.org>

CFLAGS = -g -Wall

ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
  CFLAGS += -O2
endif

build: build-arch build-indep
build-arch: build-stamp
build-indep: build-stamp
build-stamp:
	dh_testdir
	$(MAKE) CFLAGS="$(CFLAGS)"
	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	$(RM) -f build
	$(MAKE) clean
	$(RM) -rf debian/tmp debian/files debian/substvars
	dh_clean

binary:		binary-indep binary-arch

binary-indep:

binary-arch:	build-arch
	dh_testdir
	dh_testroot
	dh_installdirs usr/bin
	install genromfs debian/genromfs/usr/bin/genromfs
	dh_installchangelogs ChangeLog
	dh_installdocs romfs.txt NEWS
	dh_installman genromfs.8
	dh_strip
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb