File: rules

package info (click to toggle)
gprename 20140325-1
  • links: PTS
  • area: main
  • in suites: buster, stretch
  • size: 580 kB
  • ctags: 63
  • sloc: perl: 2,174; makefile: 138; xml: 69
file content (54 lines) | stat: -rwxr-xr-x 1,089 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/usr/bin/make -f

build: build-stamp
build-arch: build
build-indep: build

build-stamp:
	dh_testdir
	touch build-stamp

clean:
	rm -f patches
	dh_testdir
	dh_testroot
	rm -rf $(CURDIR)/debian/.pc
	rm -f patch-stamp
	rm -f build-stamp
	rm -f patch-stamp
	dh_clean

	make clean

install: build
	dh_testdir
	dh_testroot
	dh_clean
	dh_installdirs

	# Install GPRename.
	make PREFIX=/usr DESTDIR=$(CURDIR)/debian/gprename/usr install

binary-indep: build install
	# Fix gprename.desktop file.
	#cp -f build/gprename.desktop debian/gprename/usr/share/applications/gprename.desktop
	# Add debian menu icon
	install -d $(CURDIR)/debian/gprename/usr/share/pixmaps/gprename
	cp $(CURDIR)/icon/gprename_debian_menu_icon.xpm $(CURDIR)/debian/gprename/usr/share/pixmaps/gprename/gprename_debian_menu_icon.xpm
	dh_testdir
	dh_testroot
	dh_installchangelogs
	dh_installdocs
	dh_installmenu
	dh_compress
	dh_fixperms
	dh_perl
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary-arch: build install

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install