File: rules

package info (click to toggle)
ftpcopy 0.6.7-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,496 kB
  • sloc: ansic: 10,233; sh: 1,651; makefile: 705; perl: 272
file content (27 lines) | stat: -rwxr-xr-x 672 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS=hardening=+all
include /usr/share/dpkg/default.mk
export CFLAGS  += $(shell getconf LFS_CFLAGS)
export LDFLAGS += $(shell getconf LFS_LDFLAGS)

%:
	dh $@

override_dh_auto_configure:
	echo '$(CC)'      > src/conf-cc
	echo '$(CC)'      > src/conf-ld
	echo '$(CFLAGS)'  > src/conf-cflags
	echo '$(LDFLAGS)' > src/conf-ldflags

override_dh_auto_build:
	make
	# This manpage is weird and seems to be more tailored to HTML
	# output, then to normal terminal one.
	sed -ri '/^.("|URL|HTML|LINE)/ d' doc/ftpcp.1

override_dh_auto_test:
	# publicfile is not in Debian main.

override_dh_auto_install:
	# Do not run make install.