forked from craftd/craftd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
30 lines (22 loc) · 804 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
ACLOCAL_AMFLAGS = -I build/auto/m4
SUBDIRS = include third-party src plugins
EXTRA_DIST = craftd.conf.dist.in motd.conf.dist
# Make a correct default config file
edit = sed \
-e 's|@localstatedir[@]|$(localstatedir)|g' \
-e 's|@datadir[@]|$(datadir)|g' \
-e 's|@sysconfdir[@]|$(sysconfdir)|g' \
-e 's|@libdir[@]|$(libdir)|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
craftdconfdir = ${sysconfdir}/craftd/
craftdconf_DATA = craftd.conf.dist motd.conf.dist
install-data-local:
$(MKDIR_P) $(DESTDIR)$(localstatedir)/craftd/world
include $(top_srcdir)/build/auto/build.mk