File: rules

package info (click to toggle)
nip2 8.4.0-1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 21,352 kB
  • ctags: 7,787
  • sloc: ansic: 64,065; sh: 4,413; yacc: 1,133; makefile: 855; lex: 386; xml: 40; perl: 17
file content (41 lines) | stat: -rwxr-xr-x 1,444 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
#!/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
	$(RM) src/dummy.c

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::
	# remove extra MIME types files
	find debian/nip2/usr/share/mime/ -type f -a \
		! -name nip2.xml -exec rm {} \;
	rm -f debian/nip2/usr/share/applications/mimeinfo.cache
	[ ! -d debian/nip2/usr/share/mime/image/ ] || \
		rmdir debian/nip2/usr/share/mime/image/
	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/