File: rules

package info (click to toggle)
cloc 1.70-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,080 kB
  • sloc: perl: 18,213; cpp: 1,186; ansic: 296; makefile: 233; ruby: 110; cobol: 35; haskell: 35; lisp: 30; objc: 25; php: 22; pascal: 18; cs: 14; asm: 9; f90: 9; fortran: 9; java: 6; xml: 3; tcl: 2; sh: 2
file content (27 lines) | stat: -rwxr-xr-x 555 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
#!/usr/bin/make -f

PACKAGE 	= cloc
BIN			= $(PACKAGE)
BINDIR  	= debian/$(PACKAGE)/usr/bin
DOCDIR  	= debian/$(PACKAGE)/usr/share/doc/$(PACKAGE)/doc
PODDATE=$(shell dpkg-parsechangelog -S Date | LC_ALL=C date -u "+%Y-%m-%d" -f -)
export PODDATE

override_dh_auto_build:
	rm -f $(PACKAGE)/Unix/$(PACKAGE).1
	cd Unix && $(MAKE) man

override_dh_auto_install:
	install -D -m 755 Unix/$(BIN) $(BINDIR)/$(PACKAGE)

override_dh_installchangelogs:
	dh_installchangelogs Unix/NEWS


override_dh_auto_test:
	cd Unix && make test

binary: binary-indep

%:
	dh  $@