forked from getdnsapi/stubby
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.am
More file actions
28 lines (21 loc) · 757 Bytes
/
Makefile.am
File metadata and controls
28 lines (21 loc) · 757 Bytes
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
if ON_MACOS
OPTIONAL_BUILD_SUBDIR = macos
endif
SUBDIRS = src $(OPTIONAL_BUILD_SUBDIR)
stubbyconfdir = $(sysconfdir)/stubby
dist_stubbyconf_DATA = stubby.yml.example
dist_noinst_DATA = doc/stubby.1.in
dist_man_MANS = stubby.1
dist_doc_DATA = AUTHORS COPYING ChangeLog INSTALL NEWS README.md
%.1 :: doc/%.1.in ; sed -e "s|@ETCDIR@|$(stubbyconfdir)|g" $< > $@
if ON_WINDOWS
CONFIG_FILE = stubby.yml.windows
else
CONFIG_FILE = ${srcdir}/stubby.yml.example
endif
stubby.yml.windows: ${srcdir}/stubby.yml.example
awk "{sub(/$$/,\"\r\")}1" $< > $@
install-data-hook: $(CONFIG_FILE)
test -f $(DESTDIR)${stubbyconfdir}/stubby.yml || \
${INSTALL_DATA} $(CONFIG_FILE) $(DESTDIR)${stubbyconfdir}/stubby.yml
$(INSTALL) -m 755 -d $(DESTDIR)$(runstatedir)