File: rules

package info (click to toggle)
nip2 7.40.4-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 23,148 kB
  • ctags: 7,782
  • sloc: ansic: 64,017; sh: 11,951; yacc: 1,133; makefile: 779; lex: 386; xml: 40; perl: 17
file content (35 lines) | stat: -rwxr-xr-x 1,199 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
#!/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)/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/