File: rules

package info (click to toggle)
context-modules 20120611-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 14,060 kB
  • sloc: xml: 608; makefile: 49; sh: 36
file content (44 lines) | stat: -rwxr-xr-x 967 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
#! /usr/bin/make -f

package        := context-modules
instbase       := debian/$(package)

build: build-indep build-arch
build-arch: build-indep-stamp
build-indep: build-indep-stamp

build-indep-stamp:
	touch build-indep-stamp

clean:
	dh_testroot
	rm -f build-indep-stamp
	dh_clean

binary-indep: build-indep
	dh_testdir 
	dh_testroot
	dh_clean
	dh_installdirs usr/share/texmf usr/share/doc/$(package)
	cp -a tex $(instbase)/usr/share/texmf
	cp -a source $(instbase)/usr/share/texmf
	cp -a doc/context/third/* $(instbase)/usr/share/doc/$(package)
	# remove unnecessary stuff
	rm -f $(instbase)/usr/share/doc/context-modules/rst/COPYING
	dh_installtex
	dh_installdocs
	dh_installchangelogs
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary-arch:
# We have nothing to do here but the Debian Policy says this target must
# exist.

binary: binary-indep binary-arch

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