File: rules

package info (click to toggle)
jargon 4.0.0-9
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 3,116 kB
  • sloc: makefile: 40; perl: 38; sh: 4
file content (61 lines) | stat: -rwxr-xr-x 1,437 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
#!/usr/bin/make -f
# Made with the aid of debmake, by Christoph Lameter,
# based on the sample debian/rules file for GNU hello by Ian Jackson.

package=jargon

INSTALLOPT=

DESTDIR=debian/jargon
DOCDIR=$(DESTDIR)/usr/share/doc/jargon
INFODIR=$(DESTDIR)/usr/share/info

build: build-arch build-indep
build-arch: build-stamp
build-indep: build-stamp
build-stamp:
	dh_testdir
	touch build-stamp

clean:
	dh_testdir
	-rm -f jargon.info
	-rm -f build-stamp
	dh_clean

binary-indep: build
	$(checkdir)
	dh_prep
	# The actual info file
	install -d $(INSTALLOPT) -m 755 $(INFODIR)
	install $(INSTALLOPT) -m 644 jarg400.info $(INFODIR)/jargon.info

	# Lookup script
	install -d $(INSTALLOPT) -m 755  $(DESTDIR)/usr/bin
	install $(INSTALLOPT) -m 755  debian/jargon.pl $(DESTDIR)/usr/bin/jargon
	dh_installman debian/jargon.1
	# Docs
	install -d $(INSTALLOPT) -m 755 $(DOCDIR)
	install $(INSTALLOPT) -m 644 debian/jargon.html \
			$(DOCDIR)/jargon.html
	install $(INSTALLOPT) -m 644 debian/README.Debian $(DOCDIR)/README.Debian
	install $(INSTALLOPT) -m 644 jargon-README $(DOCDIR)/README
	dh_installdocs
	dh_installchangelogs

	dh_fixperms
	dh_compress
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary-arch: build
	# There are no architecture specific components for this
	# package

# Below here is fairly generic really

binary:		binary-indep binary-arch

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