File: rules

package info (click to toggle)
syslog-summary 1.12-0.1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 36 kB
  • ctags: 23
  • sloc: python: 148; makefile: 32
file content (41 lines) | stat: -rwxr-xr-x 947 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
#!/usr/bin/make -f

PACKAGE:=syslog-summary
INSTDIR:=debian/inst.$(PACKAGE)
DOCDIR:=$(INSTDIR)/usr/share/doc/$(PACKAGE)
MANDIR:=$(INSTDIR)/usr/share/man
MAN1DIR:=$(MANDIR)/man1

build:

clean:
	test -e debian/control
	test root = "`whoami`" || (echo need root priviledges; exit 1)
	rm -rf debian/substvars debian/files "debian/inst.$(PACKAGE)"

binary: binary-arch binary-indep

binary-arch:

binary-indep: clean
	install -d -m0755 \
		$(INSTDIR)/usr/bin \
		$(MAN1DIR) \
		$(DOCDIR)/examples
	install -m0755 syslog-summary $(INSTDIR)/usr/bin
	install -m 0644 syslog-summary.1 $(MAN1DIR)
	install -m 0644 ignore \
		$(DOCDIR)/examples/sample-ignore
	install -m 0644 \
		debian/copyright \
		debian/changelog \
		$(DOCDIR)
	gzip -9f \
		$(DOCDIR)/changelog \
		$(MAN1DIR)/syslog-summary.1

	install -d --mode=0755 $(INSTDIR)/DEBIAN
	dpkg-gencontrol -isp -P$(INSTDIR)
	dpkg --build $(INSTDIR) ..

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