File: rules

package info (click to toggle)
ed 1.10-2.1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 1,148 kB
  • ctags: 226
  • sloc: ansic: 2,534; sh: 247; makefile: 124
file content (44 lines) | stat: -rwxr-xr-x 818 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
#!/usr/bin/make -f

export DH_VERBOSE=1
ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
CROSS=CC=$(DEB_HOST_GNU_TYPE)-gcc
else
CROSS=
endif

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
include /usr/share/dpatch/dpatch.make

override_dh_auto_build:
	$(MAKE) $(CROSS)

override_dh_auto_configure:
	dh_auto_configure -- $(shell dpkg-buildflags --export=configure)

%:
	dh $@

build: patch-stamp
	dh build

build-arch: patch-stamp
	dh build

clean: unpatch
	dh clean
	dh_clean Makefile config.status *.o ed red

binary: binary-arch binary-indep
binary-indep:
	#nothing to do here.

binary-arch:
	dh --until dh_install $@
	# Move it around:
	mkdir -p debian/ed/bin
	mv debian/ed/usr/bin/ed debian/ed/bin
	mv debian/ed/usr/bin/red debian/ed/bin
	dh --remaining $@

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