Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (22 sloc) 804 Bytes
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