File: Makefile

package info (click to toggle)
svtools 0.6-4
  • links: PTS
  • area: main
  • in suites: bullseye, sid
  • size: 172 kB
  • sloc: sh: 1,278; makefile: 174
file content (103 lines) | stat: -rw-r--r-- 2,596 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
PREFIX=/usr/local
BINDIR=$(PREFIX)/bin
SBINDIR=$(PREFIX)/sbin
MANDIR=$(PREFIX)/share/man

TITLE=svtools
VERSION=0.6

all: man

man: svdir.1 mltail.1 mlcat.1 mlhead.1 mltac.1 svsetup.8 svinitd.8 svinfo.1 \
     svinitd-create.8

svdir.1: svdir
	help2man -n "Find daemontools service directory" -N ./svdir > svdir.1
	
mltail.1: mltail
	help2man -n "tail frontend for multilog files" -N ./mltail > mltail.1
	
mlcat.1: mlcat
	help2man -n "cat frontend for multilog files" -N ./mlcat > mlcat.1
	
mlhead.1: mlhead
	help2man -n "head frontend for multilog files" -N ./mlhead > mlhead.1
	
mltac.1: mltac
	help2man -n "tac frontend for multilog files" -N ./mltac > mltac.1
	
svsetup.8: svsetup
	help2man -s 8 -n "Service setup tool for daemontools" -N ./svsetup > svsetup.8
	
svinitd.8: svinitd
	help2man -s 8 -n "init.d wrapper for daemontools services" -N ./svinitd > svinitd.8
	
svinitd-create.8: svinitd-create
	help2man -s 8 -n "Create an init.d-script for a supervised process" -N ./svinitd-create > svinitd-create.8
	
svinfo.1: svinfo
	help2man -n "Get infos about a supervised process" -N ./svinfo > svinfo.1
	
install: all
	mkdir -p $(DESTDIR)$(BINDIR)
	cp -f \
	  svdir \
	  svinfo \
	  mltail \
	  mlcat \
	  mlhead \
	  mltac \
	  $(DESTDIR)$(BINDIR)
	cp -f \
	  svinitd \
	  svinitd-create \
	  svsetup \
	  $(DESTDIR)$(SBINDIR)
	mkdir -p $(DESTDIR)$(MANDIR)/man1
	cp -f \
	  svdir.1 \
	  svinfo.1 \
	  mltail.1 \
	  mlcat.1 \
	  mlhead.1 \
	  mltac.1 \
	  $(DESTDIR)$(MANDIR)/man1
	mkdir -p $(DESTDIR)$(MANDIR)/man8
	cp -f \
	  svinitd.8 \
	  svinitd-create.8 \
	  svsetup.8 \
	  $(DESTDIR)$(MANDIR)/man8

uninstall:
	rm -f \
	  $(DESTDIR)$(SBINDIR)/svinitd \
	  $(DESTDIR)$(SBINDIR)/svinitd-create \
	  $(DESTDIR)$(SBINDIR)/svsetup \
	  $(DESTDIR)$(BINDIR)/svdir \
	  $(DESTDIR)$(BINDIR)/svinfo \
	  $(DESTDIR)$(BINDIR)/mltail \
	  $(DESTDIR)$(BINDIR)/mlcat \
	  $(DESTDIR)$(BINDIR)/mlhead \
	  $(DESTDIR)$(BINDIR)/mltac
	rm -f \
	  $(DESTDIR)$(MANDIR)/man8/svinitd.8 \
	  $(DESTDIR)$(MANDIR)/man8/svinitd-create.8 \
	  $(DESTDIR)$(MANDIR)/man8/svsetup.8 \
	  $(DESTDIR)$(MANDIR)/man1/svdir.1 \
	  $(DESTDIR)$(MANDIR)/man1/svinfo.1 \
	  $(DESTDIR)$(MANDIR)/man1/mltail.1 \
	  $(DESTDIR)$(MANDIR)/man1/mlcat.1 \
	  $(DESTDIR)$(MANDIR)/man1/mlhead.1 \
	  $(DESTDIR)$(MANDIR)/man1/mltac.1

dist: clean
	mkdir $(TITLE)-$(VERSION)
	find * -not -regex ".*CVS.*" -and -not -regex ".*$(TITLE)-$(VERSION).*" -exec cp -f {} $(TITLE)-$(VERSION)/{} \;
	tar cfj $(TITLE)-$(VERSION).tar.bz2 $(TITLE)-$(VERSION)
	rm -rf $(TITLE)-$(VERSION)

clean:
	rm -f *.1
	rm -f *.8
	rm -f $(TITLE)-$(VERSION).tar.bz2