File: rules

package info (click to toggle)
loki 2.4.7.4-12
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 4,172 kB
  • sloc: ansic: 38,653; yacc: 4,974; lex: 946; makefile: 333; sh: 100
file content (46 lines) | stat: -rwxr-xr-x 1,064 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
36
37
38
39
40
41
42
43
44
45
46
#!/usr/bin/make -f
# debian/rules for loki using dh
# Andreas Tille <tille@debian.org>, GPL

include /usr/share/dpkg/default.mk

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

MANPAGES=hist.1 \
         loki_count.1 \
         loki_dist.1 \
         loki_ext.1 \
         loki_freq.1 \
         loki_sort_error.1 \
         prep.1 \
         qavg.1

%:
	dh $@

override_dh_auto_configure-arch:
	dh_auto_configure -- --exec_prefix=$(CURDIR)/debian/loki/usr

override_dh_auto_configure-indep:
	# do nothing here

override_dh_auto_install-arch:
	dh_auto_install -a
	make install prefix=$(CURDIR)/debian/loki/usr bindir=$(CURDIR)/debian/loki/usr/bin LDFLAGS="$(LDFLAGS)"

override_dh_installman-arch:
	dh_installman -a
	for man in $(MANPAGES) ; do \
	    ln -s loki.1.gz debian/$(DEB_SOURCE)/usr/share/man/man1/$${man}.gz ; \
	done

override_dh_auto_build-indep:
	# nothing to do here

override_dh_auto_install-indep:
	# nothing to do here

override_dh_auto_test-arch:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	cd test; if [ -f Makefile ] ; then make ; fi
endif