File: Makefile

package info (click to toggle)
spampd 2.30-22.2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 224 kB
  • ctags: 80
  • sloc: perl: 557; sh: 272; makefile: 88
file content (56 lines) | stat: -rwxr-xr-x 1,518 bytes parent folder | download | duplicates (4)
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
#!/usr/bin/make -f $0
#
# Make file for spampd
# created for the debian project
# by Sven Mueller <debian@incase.de>
# published under the GPL
#
ETCDIR:=$(DESTDIR)/etc
BINDIR:=$(DESTDIR)/usr/sbin
INITDIR:=/etc/init.d
DOCDIR:=$(DESTDIR)/usr/share/doc/spampd
#RUNLEVELDIRS:=$(DESTDIR)/etc/rc3.d
MANDIR:=$(DESTDIR)/usr/share/man
INSTALL:="/usr/bin/install"
LN:="ln"

.PHONY: all install uninstall clean
all: spampd.8.gz spampd.html

install: spampd.8.gz spampd.html
	$(INSTALL) -D -m 755 spampd ${BINDIR}/spampd
	$(INSTALL) -D -m 644 spampd.default ${ETCDIR}/default/spampd	
	$(INSTALL) -D -m 755 spampd-init.sh $(DESTDIR)${INITDIR}/spampd
	$(INSTALL) -D -m 644 spampd.html ${DOCDIR}/spampd.html
	$(INSTALL) -D -m 644 changelog.txt ${DOCDIR}/changelog
	for i in ${RUNLEVELDIRS}; do \
		$(LN) -sf ${INITDIR}/spampd $i/S20spampd ; \
	done
	$(INSTALL) -D -m 644 spampd.8.gz ${MANDIR}/man8/spampd.8.gz

uninstall:
	rm -f ${BINDIR}/spampd
	rm -f ${ETCDIR}/default/spampd
	rm -f $(DESTDIR)${INITDIR}/spampd
	rm -f ${DOCDIR}/spampd.html
	rm -f ${DOCDIR}/changelog
	rmdir ${DOCDIR} || true
	for i in ${RUNLEVELDIRS}; do \
		rm -f $i/S20spampd ; \
	done
	rm -f ${MANDIR}/man8/spampd.8.gz

spampd.8.gz: spampd.8
	gzip -9 < spampd.8 > spampd.8.gz

spampd.8: spampd
	pod2man --section=8 --center="Spam Proxy Daemon" spampd > spampd.8

spampd.html: spampd
	pod2html --outfile spampd.html --header --norecurse --backlink '[Back to top]' --infile spampd
	rm -f pod2htm?.tmp

clean:
	rm -f spampd.8.gz
	rm -f spampd.8
	rm -f spampd.html