File: rules

package info (click to toggle)
ctsim 5.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 7,256 kB
  • ctags: 6,355
  • sloc: cpp: 26,866; sh: 4,290; ansic: 1,254; perl: 296; makefile: 150
file content (22 lines) | stat: -rwxr-xr-x 615 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
#!/usr/bin/make -f
pkg		:= $(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2}')

DESTDIR		:= `pwd`/debian/$(pkg)
HELPDIR		:= `pwd`/debian/$(pkg)/usr/share/$(pkg)

%:
	dh $@  --with autotools-dev --with autoreconf

override_dh_auto_clean:
	dh_auto_clean
	rm -f helical/sample-helical.sh tools/sample-ctsim.sh

override_dh_autoconfigure:
	./configure --prefix=$(DESTDIR)/usr --mandir=$(DESTDIR)/usr/share/man --datadir=$(HELPDIR) --with-ctn -with-x --without-lam

override_dh_installdocs-indep:
	(cd docs; tar xzf html.tar.gz)
	dh_installdocs -i

override_dh_installchangelogs:
	dh_installchangelogs ChangeLog