File: rules

package info (click to toggle)
ifrench 1.4-4
  • links: PTS
  • area: main
  • in suites: potato, slink
  • size: 1,200 kB
  • ctags: 11
  • sloc: makefile: 67; lisp: 59; sh: 40
file content (65 lines) | stat: -rwxr-xr-x 1,956 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
#!/usr/bin/make -f
# Sample debian.rules file - for GNU Hello (1.3).
# Copyright 1994,1995 by Ian Jackson.
# I hereby give you perpetual unlimited permission to copy,
# modify and relicense this file, provided that you do not remove
# my name from the file itself.  (I assert my moral right of
# paternity under the Copyright, Designs and Patents Act 1988.)
# This file may have to be extensively modified
#
# Modified to be a prototype for debmake by Christoph Lameter <clameter@debian.org>

P = ifrench
R = debian/tmp

build:
	$(checkdir)
	buildhash francais.dico ./francais.aff francais.hash
	touch build

clean:
	$(checkdir)
	rm -f francais.hash
	rm -rf debian/tmp debian/files* debian/substvars core 
	rm -f build

binary-arch:	checkroot build
	$(checkdir)
	rm -rf debian/tmp
	install -d debian/tmp
	cd debian/tmp; install -d `cat ../dirs`
	install -m 644 francais.aff debian/tmp/usr/lib/ispell/french.aff
	install -m 644 francais.hash debian/tmp/usr/lib/ispell/french.hash
	install -m 644 LISEZMOI debian/tmp/usr/doc/LANG/fr/$(P)/.
	ln -s french.aff debian/tmp/usr/lib/ispell/francais.aff
	ln -s french.hash debian/tmp/usr/lib/ispell/francais.hash
	ln -s french.hash debian/tmp/usr/lib/ispell/francais-tex.hash
# Must have debmake installed for this to work. Otherwise please copy
# /usr/bin/debstd into the debian directory and change debstd to debian/debstd
	debstd ChangeLog README ispell-ireq.el
	ln -s ../LANG/fr/$(P) $(R)/usr/doc/$(P)/fr
	dpkg-gencontrol
	chown -R root.root debian/tmp
	chmod -R go-ws+rX debian/tmp
	chmod -R u-s+rw debian/tmp
	dpkg --build debian/tmp ..

binary-indep:	checkroot build
	$(checkdir)

define checkdir
	test -f francais.aff -a -f debian/rules
endef

# Below here is fairly generic really

binary:		binary-indep binary-arch

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

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

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