forked from kev009/craftd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
35 lines (27 loc) · 901 Bytes
/
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
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = src htdocs
EXTRA_DIST = compat craftd.conf.dist.in motd.conf.dist
# Make a correct default config file
edit = sed \
-e 's|@datadir[@]|$(datadir)|g' \
-e 's|@sysconfdir[@]|$(sysconfdir)|g'
craftd.conf.dist: Makefile
rm -f $@ $@.tmp
srcdir='' \
test -f ./$@.in || srcdir=$(srcdir)/; \
$(edit) $${srcdir}$@.in >$@.tmp
mv $@.tmp $@
craftd.conf.dist: $(srcdir)/craftd.conf.dist.in
DISTCLEANFILES = craftd.conf.dist
crafdconfdir = ${sysconfdir}/craftd/
crafdconf_DATA = craftd.conf.dist motd.conf.dist
# bstring extas
bstrdir = third-party/bstring
EXTRA_DIST += $(bstrdir)/license.txt $(bstrdir)/security.txt \
$(bstrdir)/bstrlib.txt $(bstrdir)/porting.txt
# Jansson extras
jsondir = third-party/jansson
EXTRA_DIST += $(jsondir)/LICENSE $(jsondir)/README.rst
# klib extras
klibdir = third-party/klib
EXTRA_DIST += $(klibdir)