File: rules

package info (click to toggle)
catdvi 0.14-10
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 992 kB
  • ctags: 939
  • sloc: ansic: 8,694; perl: 51; sh: 38; makefile: 36
file content (42 lines) | stat: -rwxr-xr-x 855 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
#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk

DEB_CONFIGURE_EXTRA_FLAGS += --prefix=/usr --mandir=\$${prefix}/share/man
DEB_MAKE_BUILD_TARGET = catdvi
DEB_MAKE_INSTALL_TARGET = install prefix=$(CURDIR)/debian/catdvi/usr

SAVERESTORE=\
	adobe2h.d \
	bytesex.d \
	canvas.d \
	catdvi.d \
	density.d \
	fixword.d \
	fntenc.d \
	fontinfo.d \
	getopt1.d \
	getopt.d \
	glyphops.d \
	kpathsea.d \
	layout.d \
	linebuf.d \
	outenc.d \
	page.d \
	pageref.d \
	pse2unic.d \
	readdvi.d \
	regsta.d \
	sparse.d \
	tfminfo.d \
	util.d \
	vlist.d \
	version.h \

update-config::
	for f in $(SAVERESTORE) ; do [ -e $$f.d-r-orig ] || cp -p $$f $$f.d-r-orig ; done

clean::
	for f in $(SAVERESTORE) ; do [ ! -e $$f.d-r-orig ] || mv $$f.d-r-orig $$f ; done