File: rules

package info (click to toggle)
nas 1.9.4-7
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 8,140 kB
  • sloc: ansic: 52,109; makefile: 31,375; sh: 8,077; perl: 1,104; yacc: 249; cpp: 216; lex: 68
file content (40 lines) | stat: -rwxr-xr-x 1,307 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
# debian/rules file for NAS

DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

instdirs=BINDIR=/usr/bin USRLIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH) MANPATH=/usr/share/man INCDIR=/usr/include PROJECTMANSUFFIX=nas ETCDIR=/etc/nas

%:
	dh $@ --with=autoreconf --with=autotools_dev

override_dh_auto_configure:
	xmkmf -a

override_dh_auto_build:
	dh_auto_build -- EXTRA_LDOPTIONS="$$LDFLAGS" \
		CCOPTIONS="$$CFLAGS $$CPPFLAGS -fcommon" \
		LDFLAGS_DEF="$$LDFLAGS"

override_dh_installdocs:
	dh_installdocs -A README FAQ TODO
ifneq (,$(filter nas-doc, $(shell dh_listpackages)))
	install -m644 doc/README debian/nas-doc/usr/share/doc/nas/README.DOC
endif

override_dh_installchangelogs:
	dh_installchangelogs HISTORY

override_dh_auto_install:
	top=`pwd`; $(MAKE) install install.man $(instdirs) DESTDIR=$$top/debian/tmp

override_dh_install:
	dh_install --fail-missing
	rm -f debian/libaudio-dev/usr/include/audio/release.h
	rm -f debian/nas-bin/usr/bin/nasd \
	      debian/nas-bin/usr/share/man/man1/nasd.1nas \
	      debian/nas-bin/usr/share/man/man1/nas.1nas
ifneq (,$(filter nas, $(shell dh_listpackages)))
	cp debian/nas/usr/share/nas/nasd.conf.eg debian/nas/etc/nas/nasd.conf
	install -m 644 debian/start-nas.man debian/nas/usr/share/man/man1/start-nas.1nas
endif