1
0
mirror of https://github.com/3cky/mbusd synced 2025-10-12 23:14:13 +08:00
mbusd/Makefile.am
2017-11-23 13:09:03 +03:00

38 lines
735 B
Makefile

## Process this file with automake to produce Makefile.in
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = src doc
mbusddocdir = ${prefix}/doc/mbusd
mbusddoc_DATA = \
README.md\
CHANGELOG.md\
LICENSE
EXTRA_DIST = $(mbusddoc_DATA)
# Copy all the spec files. Of cource, only one is actually used.
dist-hook:
for specfile in *.spec; do \
if test -f $$specfile; then \
cp -p $$specfile $(distdir); \
fi \
done
# systemd
AM_DISTCHECK_CONFIGURE_FLAGS = \
--with-systemdsystemunitdir='$$(prefix)/$(systemdsystemunitdir)'
if HAVE_SYSTEMD
systemdsystemunit_DATA = \
systemd-units/mbusd@.service
$(systemdsystemunit_DATA):
-$(SED) -e 's,@bindir\@,$(bindir),g' '$@.in' >'$@'
distclean-local::
-$(RM) $(systemdsystemunit_DATA)
endif