File: rules

package info (click to toggle)
xfe 2.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 21,864 kB
  • sloc: cpp: 75,575; sh: 9,881; ansic: 8,055; makefile: 358; sed: 16
file content (35 lines) | stat: -rwxr-xr-x 863 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f
# -*- makefile -*-

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

# path to the basic package
BASE:=$(CURDIR)/debian/xfe
BASEMAN:=$(BASE)/usr/share/man

#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow

%:
	dh $@


override_dh_auto_configure:
	dh_auto_configure -- --enable-sn --enable-release


override_dh_install:
	dh_install

	@echo add symlinks to some binaries:
	if test -d $(BASE); then \
	  test -f $(BASE)/usr/bin/xfa && \
	    ln -s $(BASE)/usr/bin/xfa $(BASE)/usr/bin/xfarch; \
	  test -f $(BASE)/usr/bin/xfi && \
	    ln -s $(BASE)/usr/bin/xfi $(BASE)/usr/bin/xfimage; \
	  test -f $(BASE)/usr/bin/xfp && \
	    ln -s $(BASE)/usr/bin/xfp $(BASE)/usr/bin/xfpack; \
	  test -f $(BASE)/usr/bin/xfw && \
	    ln -s $(BASE)/usr/bin/xfw $(BASE)/usr/bin/xfwrite; \
	fi