mirror of
https://github.com/troglobit/finit.git
synced 2026-10-02 14:02:52 +07:00
v5.0 ships keventd and the D-Bus support enabled out of the box, but the remaining bundled pieces stayed opt-in, and the help text for two of them already claimed otherwise. Default all three to yes; --without-sulogin, --without-watchdog, and --without-libsystemd opt out. The distcheck and CI configure lines drop the flags they no longer need, so CI exercises the defaults. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
69 lines
1.9 KiB
Makefile
69 lines
1.9 KiB
Makefile
ACLOCAL_AMFLAGS = -I m4
|
|
|
|
# libink must precede src in SUBDIRS because finit links against
|
|
# libink at build time. Automake recurses subdirs strictly in
|
|
# declaration order, so the typical "explicit dependency" pattern
|
|
# (foo: bar) doesn't help here — ordering is the only thing that
|
|
# does. libsystemd is consumed by test/serv only, so its position
|
|
# after src is fine.
|
|
SUBDIRS = man plugins
|
|
if DBUS
|
|
SUBDIRS += libink dbus-1
|
|
endif
|
|
SUBDIRS += src system tmpfiles.d
|
|
|
|
if KEVENTD
|
|
SUBDIRS += keventd
|
|
endif
|
|
|
|
dist_doc_DATA = README.md LICENSE contrib/finit.conf
|
|
|
|
if CONTRIB
|
|
SUBDIRS += contrib
|
|
endif
|
|
if DOC
|
|
SUBDIRS += doc
|
|
endif
|
|
if LIBSYSTEMD
|
|
SUBDIRS += libsystemd
|
|
endif
|
|
|
|
if LIBSYSTEMD
|
|
SUBDIRS += test
|
|
# Explicit dependency to ensure libsystemd is built before test
|
|
test: libsystemd
|
|
else
|
|
SUBDIRS += test
|
|
endif
|
|
|
|
# Compat hook
|
|
install-dev:
|
|
@make -C src install-pkgincludeHEADERS
|
|
|
|
# The fuzz target is built by hand with clang (doc/build.md), so it is
|
|
# not in any _PROGRAMS and nothing else would clear it or the corpus
|
|
# it grows.
|
|
distclean-local:
|
|
-rm -f $(top_builddir)/fuzz-msg-parse
|
|
-rm -rf $(top_builddir)/.fuzz-corpus
|
|
|
|
# Target to run when building a release
|
|
release: distcheck
|
|
@for file in $(DIST_ARCHIVES); do \
|
|
md5sum $$file > ../$$file.md5; \
|
|
sha256sum $$file > ../$$file.sha256; \
|
|
done
|
|
@mv $(DIST_ARCHIVES) ../
|
|
@echo
|
|
@echo "Resulting release files:"
|
|
@echo "================================================================="
|
|
@for file in $(DIST_ARCHIVES); do \
|
|
printf "$$file \tDistribution tarball\n"; \
|
|
printf "$$file.md5\t"; cat ../$$file.md5 | cut -f1 -d' '; \
|
|
printf "$$file.sha256\t"; cat ../$$file.sha256 | cut -f1 -d' '; \
|
|
done
|
|
|
|
DISTCHECK_CONFIGURE_FLAGS = --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
|
|
--enable-testserv-plugin --enable-x11-common-plugin \
|
|
--with-fstab=/etc/fstab --with-bash-completion-dir=no
|