File: rules

package info (click to toggle)
aiccu 20070115-14
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 780 kB
  • ctags: 793
  • sloc: ansic: 4,667; sh: 492; makefile: 338
file content (43 lines) | stat: -rwxr-xr-x 861 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
41
42
43
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.
# Adjusted by Jeroen Massar <jeroen@sixxs.net> for aiccu

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

include /usr/share/quilt/quilt.make

%:
	dh $@

build: $(QUILT_STAMPFN)
	dh $@

clean: unpatch
	dh $@
#	dh_testdir
#	rm -f build-stamp configure-stamp
#
#	$(MAKE) clean
#
	# Fix permissions of configuration file
	chmod a-x `pwd`/doc/aiccu.conf

	# Fix permissions of 60aiccu file
	chmod a+x `pwd`/debian/60aiccu

	# Remove empty preinst script
	[ -f `pwd`/debian/aiccu.preinst ] && rm `pwd`/debian/aiccu.preinst || exit 0

#	dh_clean

binary-arch: build install
	dh $@

install: build
	dh $@
	# The license is already duplicated in debian/copyright
	rm `pwd`/debian/aiccu/usr/share/doc/aiccu/LICENSE

binary: binary-arch binary-indep