File: rules

package info (click to toggle)
nip2 7.28.4-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 22,276 kB
  • sloc: ansic: 72,047; sh: 11,710; yacc: 1,131; makefile: 786; lex: 364; sed: 39; perl: 17; xml: 12
file content (38 lines) | stat: -rwxr-xr-x 1,326 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
#!/usr/bin/make -f

VERSION := $(shell dpkg-parsechangelog | \
             awk '/Version:/ {print $$2}' | cut -d- -f 1)

# Variables used by cdbs
DEB_TAR_SRCDIR = nip2-$(VERSION)
DEB_INSTALL_DIRS_nip2 = /usr/share/pixmaps
DEB_INSTALL_DOCS_nip2 = \
	$(DEB_BUILDDIR)/test/convert.sed \
	$(DEB_BUILDDIR)/doc/html
DEB_COMPRESS_EXCLUDE = html examples

#### Include cdbs rules files.
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/gnome.mk
include /usr/share/cdbs/1/class/autotools.mk

clean::
	$(RM) *.cdbs-config_list

pre-build::
	find build-tree -name CVS -print | xargs rm -rf

# Move examples to /usr/share/doc as per policy, but leave a link
# behind so that File -> Open Examples still works.  (When I put the
# symbolic link command here, I thought of using an absolute link so it
# would work for people who moved /usr/share/doc and left a link in its
# place, but the package creation process changed it to a relative link
# anyway. -ejb)
install/nip2::
	rm debian/nip2/usr/bin/run-nip2.sh
	cp debian/misc/nip2.xpm debian/nip2/usr/share/pixmaps
	mv debian/nip2/usr/share/nip2/data/examples \
		debian/nip2/usr/share/doc/nip2/examples
	ln -s ../../doc/nip2/examples debian/nip2/usr/share/nip2/data/
	find debian/nip2/usr/share/doc/nip2/examples -type f -perm -1 -print | \
		xargs chmod -x