File: rules

package info (click to toggle)
codonw 1.4.4-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,288 kB
  • sloc: ansic: 14,637; makefile: 207; sh: 194; perl: 36
file content (36 lines) | stat: -rwxr-xr-x 874 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
#!/usr/bin/make -f

# DH_VERBOSE := 1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_clean:
	rm -rf debian/man
	dh_clean --exclude=Makefile.orig

override_dh_auto_clean:
	rm -rf *.o *.coa *.blk *.out *raw codonw codonW.log

override_dh_installdocs:
	mkdir -p debian/codonw/usr/share/doc/codonw
	cp *.txt debian/codonw/usr/share/doc/codonw
	dh_installdocs --

override_dh_installman:
	mkdir -p $(CURDIR)/debian/man
	$(CURDIR)/debian/make_man.pl $(CURDIR)/debian/template.man \
	  $(CURDIR)/debian/man
	dh_installman --

override_dh_auto_install:
	mkdir -p debian/codonw/usr/bin
	cp codonw debian/codonw/usr/bin
	mkdir -p debian/codonw/usr/share/codonw
	cp codonW.hlp debian/codonw/usr/share/codonw
	chmod -x debian/codonw/usr/share/codonw/codonW.hlp

override_dh_fixperms:
	dh_fixperms
	chmod -x debian/codonw/usr/share/doc/codonw/examples/input.dat