File: rules

package info (click to toggle)
gnotepad%2B 1.3.3-2.1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 2,828 kB
  • ctags: 3,055
  • sloc: ansic: 28,515; sh: 2,643; makefile: 410; sed: 93
file content (88 lines) | stat: -rwxr-xr-x 2,492 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#! /usr/bin/make -f

#   Copyright 1994-98   joey@infodrom.north.de (Martin Schulze)
#   Copyright 1999      dres@debian.org (James LewisMoss)
#
#   This program is free software; you can redistribute it and/or modify
#   it under the terms of the GNU General Public License as published by
#   the Free Software Foundation; version 2 dated June, 1991.
#
#   This program is distributed in the hope that it will be useful,
#   but WITHOUT ANY WARRANTY; without even the implied warranty of
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#   GNU General Public License for more details.
#
#   You should have received a copy of the GNU General Public License
#   along with this program;  if not, write to the Free Software
#   Foundation Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA
export DH_COMPAT=1

PREFIX=usr

i=$(shell pwd)/debian/tmp/$(PREFIX)
b=$(shell pwd)/debian/build


build:
	./configure --prefix=/$(PREFIX) --disable-gtkhtml
	$(MAKE)
	touch stamp-build

clean: debclean
	rm -f stamp-build
	rm -f install-deb
	test -f Makefile && $(MAKE) distclean || /bin/true
	rm -rf *~
	dh_clean
	rm -rf $(i) $(b)

debclean:
# Cleans debian binary directories to allow binary creation
	rm -rf debian/tmp
	rm -f debian/{files,substvars}

install-deb: build
	$(MAKE) install prefix=$(i)

binary-indep: install-deb
# Nothing to be done here

binary-arch: install-deb gnotepad+

gnotepad+: install-deb
	@echo "--- Building: $@"
	dh_installdocs       -p$@ -P$(b)/$@ \
		TODO README NEWS HACKING AUTHORS
	dh_installchangelogs -p$@ -P$(b)/$@ \
		ChangeLog
	dh_movefiles         -p$@ -P$(b)/$@
	mkdir -p $(b)/$@/$(PREFIX)/share/man/man1
	mv $(b)/$@/$(PREFIX)/man/man1/* $(b)/$@/$(PREFIX)/share/man/man1/
	rmdir $(b)/$@/$(PREFIX)/man/man1
	rmdir $(b)/$@/$(PREFIX)/man
	dh_strip             -p$@ -P$(b)/$@ 
	dh_compress          -p$@ -P$(b)/$@ 
	dh_fixperms          -p$@ -P$(b)/$@ 
	dh_fixperms          -p$@ -P$(b)/$@
	dh_installmenu       -p$@ -P$(b)/$@
	dh_installdeb        -p$@ -P$(b)/$@
	dh_shlibdeps         -p$@ -P$(b)/$@
	dh_gencontrol        -p$@ -P$(b)/$@
	dh_makeshlibs        -p$@ -P$(b)/$@
#	dh_undocumented      -p$@ -P$(b)/$@ 
	dh_md5sums           -p$@ -P$(b)/$@
	dh_builddeb          -p$@ -P$(b)/$@

binary: binary-indep binary-arch

source diff:
	@echo >&2 'source and diff are obsolete - use dpkg-source -b' or dsc; false

checkroot:
	$(checkdir)
	test root = "`whoami`"

dist: binary dsc

.PHONY: binary binary-arch binary-indep clean checkroot