File: rules

package info (click to toggle)
kildclient 3.2.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,584 kB
  • sloc: ansic: 24,834; xml: 7,516; sh: 5,022; perl: 2,876; makefile: 156; sed: 39
file content (33 lines) | stat: -rwxr-xr-x 855 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
#!/usr/bin/make -f

#export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

export DEB_CFLAGS_MAINT_APPEND  = -Wall


ifneq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
	NODOC=nodoc
endif


%:
	dh $@

override_dh_auto_install-indep:
	# Build html manual
	test -n '$(NODOC)' || \
	  $(MAKE) -C doc/C html
	test -n '$(NODOC)' || \
	  $(MAKE) -C doc DESTDIR=$(CURDIR)/debian/kildclient-doc install

override_dh_auto_install-arch:
	$(MAKE) DESTDIR=$(CURDIR)/debian/kildclient install
	# Remove extra license file
	rm $(CURDIR)/debian/kildclient/usr/share/doc/kildclient/COPYING
	# Move binary to /usr/games
	mv $(CURDIR)/debian/kildclient/usr/bin/kildclient $(CURDIR)/debian/kildclient/usr/games/
	rmdir $(CURDIR)/debian/kildclient/usr/bin
	# Remove docs from arch-dependent package
	rm -rf $(CURDIR)/debian/kildclient/usr/share/doc/kildclient/html