-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile.am
78 lines (65 loc) · 2.19 KB
/
Makefile.am
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
##
## $Id: Makefile.am,v 1.48 2006/01/18 22:02:16 bboy Exp $
##
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = intl lib src contrib m4 pkg doc po
EXTRA_DIST = config.rpath BUGS QUICKSTART.mysql QUICKSTART.postgres README.mysql TODO mydns.conf
CLEANFILES = core* *~ gmon.out bb.out @PACKAGE_NAME@-*.gz @PACKAGE_NAME@-*.bz2
install-data-hook:
@echo
@echo " ###"
@echo " ### @PACKAGE_NAME@ version @PACKAGE_VERSION@ installed!"
@echo " ###"
@echo " ### See the file QUICKSTART if you are in a hurry."
@echo " ### Otherwise, consult the manual (in doc/)."
@echo " ###"
@echo " ### The MyDNS server program was installed as"
@echo " ### @sbindir@/mydns"
@echo " ###"
@echo " ### Your configuration file should be installed as"
@echo " ### @MYDNS_CONF@"
@if ! test -f @MYDNS_CONF@; then echo " ### (You can auto-create it with \"make conf\")"; fi
@echo " ###"
@echo
## The `conf' target creates an /etc/mydns.conf template
conf:
@if ! test -x src/mydns/mydns; then \
echo; echo " ###"; \
echo " ### MyDNS binary not found - please compile MyDNS first"; \
echo " ### by running \"make\"."; \
echo " ###"; echo; \
else \
if test -f @MYDNS_CONF@; then \
echo; echo " ###"; \
echo " ### @MYDNS_CONF@ already exists! Nothing done."; \
echo " ###"; echo; \
else \
src/mydns/mydns --dump-config > @MYDNS_CONF@; \
chmod 0600 @MYDNS_CONF@; \
echo; echo " ###"; \
echo " ### @MYDNS_CONF@ created. See mydns.conf(5) for details."; \
echo " ###"; echo; \
fi; \
fi
## The `localconf' target just outputs a mydns.conf template
localconf:
@if ! test -x src/mydns/mydns; then \
echo; echo " ###"; \
echo " ### MyDNS binary not found - please compile MyDNS first"; \
echo " ### by running \"make\"."; \
echo " ###"; echo; \
else \
src/mydns/mydns --dump-config; \
fi
news:
@if [ -x ./mknews ]; then ./mknews > NEWS; cat NEWS; fi
dist-hook: news
rm -rf `find $(distdir)/doc/nls -name CVS`
distready: news
rm -rf mydns-*
po/mkpotfile
release: clean distready
chown -R 0:0 .
if [ -x ./release.sh ]; then ./release.sh $(VERSION) `pwd`; fi
.PHONY: release distready news localconf conf
# vi:set ts=3: