File: rules

package info (click to toggle)
fte 0.50.2b6-20110708-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 3,768 kB
  • ctags: 6,761
  • sloc: cpp: 47,985; ansic: 2,795; sh: 112; makefile: 71; perl: 29
file content (40 lines) | stat: -rwxr-xr-x 1,049 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
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

DEB_HOST_ARCH_OS = $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)

%:
	dh $@


override_dh_auto_build:
ifeq (linux,$(DEB_HOST_ARCH_OS))
	dh_auto_build -D src -- -f fte-unix.mak
else
	dh_auto_build -D src -- -f fte-unix.mak cfte xfte sfte nfte
endif

override_dh_auto_install:
	# Don't run dh_auto_install It triggers upstream's default
	# build target which breaks non-linux builds. See above.

override_dh_auto_clean:
	dh_auto_clean -D src -- -f fte-unix.mak

override_dh_install-arch:
	cd config; $(CURDIR)/src/cfte main.fte $(CURDIR)/debian/fte/etc/fte/system.fterc
	dh_install

override_dh_install-indep:
	chmod -R go=rX config
	tar --sort=name -cf $(CURDIR)/debian/fte-docs/usr/share/doc/fte/config-example.tar config
	gzip -9n $(CURDIR)/debian/fte-docs/usr/share/doc/fte/config-example.tar
	dh_install

override_dh_installchangelogs:
	dh_installchangelogs NEWS