File: rules

package info (click to toggle)
dict-foldoc 20080708-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 5,216 kB
  • ctags: 5
  • sloc: perl: 85; sh: 45; makefile: 44
file content (65 lines) | stat: -rwxr-xr-x 1,482 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

include /usr/share/dpatch/dpatch.make

# The name of the package (for example, `emacs').
pkg   := dict-foldoc

FILES_TO_CLEAN  = foldoc.* newdict
DICTDIR = debian/dict-foldoc/usr/share/dictd


install_file = install -p -o root -g root -m 644
install_program = install -p -o root -g root -m 755

build: build-stamp
build-stamp: patch-stamp
	dh_testdir

	cat Dictionary debian/Dictionary.debian > newdict
	perl debian/condense newdict | \
	  /usr/bin/dictfmt -f --headword-separator %%% --break-headwords \
	  --allchars -u http://foldoc.doc.ic.ac.uk/foldoc/Dictionary.gz \
	  -s "The Free On-line Dictionary of Computing (8 July 2008)" \
	  --utf8 foldoc
	/usr/bin/dictzip -v foldoc.dict

	touch build-stamp

clean-patched:
# Undoes the effect of `$(MAKE) -f debian/rules build'.
	dh_testdir
	dh_testroot
	rm -f  $(FILES_TO_CLEAN)
	dh_clean

clean: clean-patched unpatch

install: build
	dh_testdir
	dh_testroot
	dh_prep
	dh_installdirs

	$(install_file)      foldoc.dict.dz $(DICTDIR)
	$(install_file)      foldoc.index $(DICTDIR)

# Build architecture-independent files here.
binary-indep: build install
	dh_testdir Dictionary
	dh_testroot
	dh_installchangelogs
	dh_installdocs
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

# Build architecture-dependent files here.
binary-arch: build install
# We have nothing to do by default.

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