File: rules

package info (click to toggle)
matwrap 0.57-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 532 kB
  • ctags: 236
  • sloc: perl: 2,774; cpp: 622; makefile: 192; sh: 14
file content (76 lines) | stat: -rwxr-xr-x 1,688 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#!/usr/bin/make -f 					
# 							-*- makefile -*-
# debian/rules file for the Debian/GNU Linux matwrap package
# Copyright 1999 by Dirk Eddelbuettel <edd@debian.org>

package	= matwrap
debtmp	:= $(shell pwd)/debian/tmp/usr

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

build: build-stamp
build-stamp:
	dh_testdir
	#$(MAKE)
	pod2man share/$(package)/$(package).pod > debian/$(package).1
	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp
	#-$(MAKE) clean
	#-$(MAKE) distclean
	dh_clean

install: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs
	$(MAKE) PREFIX=$(debtmp) 	install
	# cleanups needed
	rm -rvf $(debtmp)/mkoctfile_fixed 	  		\
		$(debtmp)/share/matwrap/Examples/ 		\
		$(debtmp)/share/matwrap/mkoctfile* 		\
		$(debtmp)/share/matwrap/fix_mkoctfile.sh 	\
		$(debtmp)/share/matwrap/matwrap.pod	 	\
		$(debtmp)/man/ 
	# change $PREFIX to leave only trailing /usr
	perl -p -i -e 's|/.*/debian/tmp||' $(debtmp)/bin/matwrap

# Build architecture-independent files here.
binary-indep: build install
#	dh_testversion
	dh_testdir
	dh_testroot
#	dh_installdebconf
	dh_installdocs		README TODO
	dh_installexamples	share/matwrap/Examples/*
#	dh_installmenu
#	dh_installemacsen
#	dh_installpam
#	dh_installinit
#	dh_installcron
	dh_installmanpages
#	dh_installinfo
#	dh_undocumented
	dh_installchangelogs	ChangeLog
#	dh_link
	dh_compress
	dh_fixperms
#	dh_suidregister
	dh_installdeb
	dh_perl
	dh_gencontrol
#	dh_md5sums
	dh_builddeb

# Build architecture-dependent files here.
binary-arch: build install
# We have nothing to do by default.

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install