File: rules

package info (click to toggle)
crm114 20100106-12
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 4,000 kB
  • sloc: ansic: 35,506; makefile: 794; sh: 617; lisp: 208
file content (37 lines) | stat: -rwxr-xr-x 1,384 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
#!/usr/bin/make -f

package=crm114

%:
	dh $@

override_dh_auto_install:
	dh_auto_install -- prefix=`pwd`/debian/$(package)/usr
	mv `pwd`/debian/$(package)/usr/bin/crm `pwd`/debian/$(package)/usr/bin/crm114

execute_after_dh_installdocs:
	rm `pwd`/debian/crm114/usr/share/doc/$(package)/GPL_License.txt
	mv `pwd`/debian/crm114/usr/share/doc/$(package)/*test* \
	   `pwd`/debian/crm114/usr/share/doc/$(package)/examples/tests/
	set -e; for ext in cf crm dat example mfp recipe; do \
		mv `pwd`/debian/crm114/usr/share/doc/$(package)/*.$$ext \
	           `pwd`/debian/crm114/usr/share/doc/$(package)/examples/; \
	done

execute_after_dh_installexamples:
	set -e; for file in `pwd`/debian/$(package)/usr/share/doc/$(package)/examples/* \
	                    `pwd`/debian/$(package)/usr/share/doc/$(package)/examples/tests/*; do \
		if [ -f $$file ] && [ "`head -c 2 $$file`" != '#!' ]; then \
			chmod a-x $$file; \
		fi; \
	done

execute_after_dh_installchangelogs:
	# Why is this not installed automatically??
	install debian/NEWS `pwd`/debian/$(package)/usr/share/doc/$(package)/NEWS.Debian

execute_after_dh_fixperms:
	chmod a-x `pwd`/debian/$(package)/usr/share/$(package)/mailfilter.cf
	chmod a+x `pwd`/debian/$(package)/usr/share/$(package)/*.crm
	chmod a-x `pwd`/debian/$(package)/usr/share/$(package)/maillib.crm
	chmod a-x `pwd`/debian/$(package)/usr/share/emacs/site-lisp/*