File: rules

package info (click to toggle)
nip2 8.7.1-4
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 23,164 kB
  • sloc: ansic: 64,075; sh: 4,475; yacc: 1,133; makefile: 921; lex: 386; xml: 40; perl: 17
file content (37 lines) | stat: -rwxr-xr-x 1,009 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

override_dh_clean:
#	find $(CURDIR) -name Makefile.in\* -delete
#	$(RM) $(CURDIR)/m4/*.m4
	dh_clean

override_dh_auto_configure:
#	$(CURDIR)/autogen.sh
	dh_auto_configure

override_dh_auto_test:
	chmod u+x $(CURDIR)/test/test_all.sh
	dh_auto_test || true

override_dh_auto_install:
	dh_auto_install
	mkdir -p $(CURDIR)/debian/nip2/usr/share/pixmaps/
	cp $(CURDIR)/debian/misc/nip2.xpm \
		$(CURDIR)/debian/nip2/usr/share/pixmaps/
	mv $(CURDIR)/debian/nip2/usr/share/nip2/data/examples \
		$(CURDIR)/debian/nip2/usr/share/doc/nip2/examples
	ln -s ../../doc/nip2/examples \
		$(CURDIR)/debian/nip2/usr/share/nip2/data/
	mkdir -p $(CURDIR)/debian/nip2/usr/share/metainfo/
	mv $(CURDIR)/debian/nip2/usr/share/appdata/nip2.appdata.xml \
		$(CURDIR)/debian/nip2/usr/share/metainfo/

%:
	dh $@ --fail-missing

.PHONY: override_dh_clean override_dh_auto_configure override_dh_auto_test \
	override_dh_auto_install