File: rules.non-dh

package info (click to toggle)
dpatch 2.0.38%2Bnmu1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 676 kB
  • sloc: sh: 1,013; makefile: 225; awk: 57; perl: 17
file content (34 lines) | stat: -rw-r--r-- 901 bytes parent folder | download | duplicates (8)
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
#! /usr/bin/make -f
# Sample dpatch rules file. Only example. Nothing else. :)

CFLAGS 		= -g
ifneq (,$(findstring noopt,${DEB_BUILD_OPTIONS}))
CFLAGS          += -O0
else
CFLAGS          += -O2
endif

include /usr/share/dpatch/dpatch.make

build: patch
# Note that the above targets ("build" and "patch") are both phony, and
# as such will always be considered out-of-date. If you don't want build:
# to be re-run each time, see sample.rules
	test -e debian/control
# Build your package here
	touch build-stamp

clean: clean1 unpatch
clean1:
	test -e debian/control && test xroot = x`whoami`
	rm -rf debian/files* core debian/*substvars build
# Clean it up

binary-arch: build
	test -e debian/control && test xroot = x`whoami`
# Do everything you need to get a .deb out of it

binary-indep: ;
binary:	binary-indep binary-arch

.PHONY: binary binary-arch binary-indep clean clean1 build patch unpatch