1 # -*- Mode: makefile; indent-tabs-mode: t -*-
3 # This file is part of elogind.
5 # Copyright 2010-2012 Lennart Poettering
6 # Copyright 2010-2012 Kay Sievers
7 # Copyright 2013 Zbigniew Jędrzejewski-Szmek
8 # Copyright 2013 David Strauss
10 # elogind is free software; you can redistribute it and/or modify it
11 # under the terms of the GNU Lesser General Public License as published by
12 # the Free Software Foundation; either version 2.1 of the License, or
13 # (at your option) any later version.
15 # elogind is distributed in the hope that it will be useful, but
16 # WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 # Lesser General Public License for more details.
20 # You should have received a copy of the GNU Lesser General Public License
21 # along with elogind; If not, see <http://www.gnu.org/licenses/>.
23 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
24 AM_MAKEFLAGS = --no-print-directory
25 AUTOMAKE_OPTIONS = color-tests parallel-tests
27 GCC_COLORS ?= 'ooh, shiny!'
32 # remove targets if the command fails
35 # keep intermediate files
38 # Keep the test-suite.log
39 .PRECIOUS: $(TEST_SUITE_LOG) Makefile
45 # Dirs of external packages
46 dbuspolicydir=@dbuspolicydir@
47 dbussessionservicedir=@dbussessionservicedir@
48 dbussystemservicedir=@dbussystemservicedir@
50 pamconfdir=@pamconfdir@
51 pkgconfiglibdir=$(libdir)/pkgconfig
52 polkitpolicydir=$(datadir)/polkit-1/actions
53 bashcompletiondir=@bashcompletiondir@
54 zshcompletiondir=@zshcompletiondir@
55 varlogdir=$(localstatedir)/log
56 elogindstatedir=$(localstatedir)/lib/elogind
57 catalogstatedir=$(elogindstatedir)/catalog
58 xinitrcdir=$(sysconfdir)/X11/xinit/xinitrc.d
60 # Our own, non-special dirs
61 pkgsysconfdir=$(sysconfdir)/elogind
62 userunitdir=$(prefix)/lib/elogind/user
63 userpresetdir=$(prefix)/lib/elogind/user-preset
64 tmpfilesdir=$(prefix)/lib/tmpfiles.d
65 sysusersdir=$(prefix)/lib/sysusers.d
66 sysctldir=$(prefix)/lib/sysctl.d
67 binfmtdir=$(prefix)/lib/binfmt.d
68 modulesloaddir=$(prefix)/lib/modules-load.d
69 networkdir=$(rootprefix)/lib/elogind/network
70 pkgincludedir=$(includedir)/elogind
71 systemgeneratordir=$(rootlibexecdir)/system-generators
72 usergeneratordir=$(prefix)/lib/elogind/user-generators
73 systemshutdowndir=$(rootlibexecdir)/system-shutdown
74 systemsleepdir=$(rootlibexecdir)/system-sleep
75 systemunitdir=$(rootprefix)/lib/elogind/system
76 systempresetdir=$(rootprefix)/lib/elogind/system-preset
77 udevrulesdir=$(rootprefix)/lib/udev/rules.d
78 catalogdir=$(prefix)/lib/elogind/catalog
79 kernelinstalldir = $(prefix)/lib/kernel/install.d
80 factory_etcdir = $(prefix)/share/factory/etc
81 factory_pamdir = $(prefix)/share/factory/etc/pam.d
82 bootlibdir = $(prefix)/lib/elogind/boot/efi
84 # And these are the special ones for /
85 rootprefix=@rootprefix@
86 rootbindir=$(rootprefix)/bin
87 rootlibexecdir=$(rootprefix)/lib/elogind
92 UNINSTALL_EXEC_HOOKS =
94 UNINSTALL_DATA_HOOKS =
95 DISTCLEAN_LOCAL_HOOKS =
103 polkitpolicy_in_in_files =
104 polkitpolicy_in_files =
106 dist_pkgsysconf_DATA =
107 nodist_pkgsysconf_DATA =
109 dist_dbuspolicy_DATA =
110 dist_dbussystemservice_DATA =
111 dist_systemunit_DATA_busnames =
117 TEST_EXTENSIONS = .py
118 PY_LOG_COMPILER = $(PYTHON)
120 noinst_PROGRAMS = $(manual_tests) $(tests)
127 in_files = $(filter %.in,$(EXTRA_DIST))
128 in_in_files = $(filter %.in.in, $(in_files))
129 m4_files = $(filter %.m4,$(EXTRA_DIST) $(in_files:.m4.in=.m4))
131 CLEANFILES = $(BUILT_SOURCES) \
132 $(pkgconfiglib_DATA) \
133 $(in_files:.in=) $(in_in_files:.in.in=) \
136 .PHONY: $(INSTALL_EXEC_HOOKS) $(UNINSTALL_EXEC_HOOKS) \
137 $(INSTALL_DATA_HOOKS) $(UNINSTALL_DATA_HOOKS) \
138 $(DISTCLEAN_LOCAL_HOOKS) $(CLEAN_LOCAL_HOOKS)
140 # FIXME a different pkttyagent path...
143 -include $(top_builddir)/config.h \
144 -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \
145 -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
146 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
147 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
148 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
149 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
150 -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
151 -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
152 -DCERTIFICATE_ROOT=\"$(CERTIFICATEROOT)\" \
153 -DCATALOG_DATABASE=\"$(catalogstatedir)/database\" \
154 -DROOTPREFIX=\"$(rootprefix)\" \
155 -DRANDOM_SEED_DIR=\"$(localstatedir)/lib/elogind/\" \
156 -DRANDOM_SEED=\"$(localstatedir)/lib/elogind/random-seed\" \
157 -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
158 -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
159 -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
160 -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
161 -DELOGIND_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
162 -DELOGIND_LANGUAGE_FALLBACK_MAP=\"$(pkgdatadir)/language-fallback-map\" \
163 -DX_SERVER=\"$(bindir)/X\" \
164 -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
165 -DQUOTACHECK=\"$(QUOTACHECK)\" \
166 -DKEXEC=\"$(KEXEC)\" \
167 -DLIBDIR=\"$(libdir)\" \
168 -DROOTLIBDIR=\"$(rootlibdir)\" \
169 -DROOTLIBEXECDIR=\"$(rootlibexecdir)\" \
170 -DTEST_DIR=\"$(abs_top_srcdir)/test\" \
171 -I $(top_srcdir)/src \
172 -I $(top_builddir)/src/shared \
173 -I $(top_srcdir)/src/shared \
174 -I $(top_srcdir)/src/login \
175 -I $(top_srcdir)/src/systemd \
176 -I $(top_builddir)/src/core \
177 -I $(top_srcdir)/src/core \
178 -I $(top_srcdir)/src/libelogind/sd-bus \
179 -I $(top_srcdir)/src/libelogind/sd-event \
180 -I $(top_srcdir)/src/libelogind/sd-device \
184 AM_CFLAGS = $(OUR_CFLAGS)
185 AM_LDFLAGS = $(OUR_LDFLAGS)
187 # ------------------------------------------------------------------------------
188 define move-to-rootlibdir
189 if test "$(libdir)" != "$(rootlibdir)"; then \
190 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
191 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
192 rm -f $(DESTDIR)$(libdir)/$$libname && \
193 $(LN_S) --relative -f $(DESTDIR)$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
194 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
200 SHUTDOWN_TARGET_WANTS =
201 LOCAL_FS_TARGET_WANTS =
202 MULTI_USER_TARGET_WANTS =
203 GRAPHICAL_TARGET_WANTS =
204 RESCUE_TARGET_WANTS =
205 SYSINIT_TARGET_WANTS =
206 SOCKETS_TARGET_WANTS =
207 BUSNAMES_TARGET_WANTS =
208 TIMERS_TARGET_WANTS =
209 USER_SOCKETS_TARGET_WANTS =
210 USER_DEFAULT_TARGET_WANTS =
211 USER_BUSNAMES_TARGET_WANTS =
213 SYSTEM_UNIT_ALIASES =
217 install-target-wants-hook:
218 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && dir=$(systemunitdir) && $(add-wants)
219 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && dir=$(systemunitdir) && $(add-wants)
220 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && dir=$(systemunitdir) && $(add-wants)
221 what="$(GRAPHICAL_TARGET_WANTS)" && wants=graphical.target && dir=$(systemunitdir) && $(add-wants)
222 what="$(RESCUE_TARGET_WANTS)" && wants=rescue.target && dir=$(systemunitdir) && $(add-wants)
223 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && dir=$(systemunitdir) && $(add-wants)
224 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(systemunitdir) && $(add-wants)
225 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && dir=$(systemunitdir) && $(add-wants)
226 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && dir=$(systemunitdir) && $(add-wants)
227 what="$(USER_SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(userunitdir) && $(add-wants)
228 what="$(USER_DEFAULT_TARGET_WANTS)" && wants=default.target && dir=$(userunitdir) && $(add-wants)
230 install-busnames-target-wants-hook:
231 what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(systemunitdir) && $(add-wants)
232 what="$(USER_BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(userunitdir) && $(add-wants)
235 [ -z "$$what" ] || ( \
236 dir=$(DESTDIR)$$dir/$$wants.wants && \
237 $(MKDIR_P) -m 0755 $$dir && \
240 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
243 install-directories-hook:
244 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
246 install-aliases-hook:
247 set -- $(SYSTEM_UNIT_ALIASES) && \
248 dir=$(systemunitdir) && $(install-aliases)
249 set -- $(USER_UNIT_ALIASES) && \
250 dir=$(userunitdir) && $(install-relative-aliases)
251 set -- $(GENERAL_ALIASES) && \
252 dir= && $(install-relative-aliases)
254 define install-aliases
255 while [ -n "$$1" ]; do \
256 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
257 rm -f $(DESTDIR)$$dir/$$2 && \
258 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
259 shift 2 || exit $$?; \
263 define install-relative-aliases
264 while [ -n "$$1" ]; do \
265 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
266 rm -f $(DESTDIR)$$dir/$$2 && \
267 $(LN_S) --relative $(DESTDIR)$$1 $(DESTDIR)$$dir/$$2 && \
268 shift 2 || exit $$?; \
272 install-touch-usr-hook:
273 touch -c $(DESTDIR)/$(prefix)
275 INSTALL_EXEC_HOOKS += \
276 install-target-wants-hook \
277 install-directories-hook \
278 install-aliases-hook \
279 install-touch-usr-hook
282 INSTALL_EXEC_HOOKS += \
283 install-busnames-target-wants-hook
286 # ------------------------------------------------------------------------------
287 AM_V_M4 = $(AM_V_M4_$(V))
288 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
289 AM_V_M4_0 = @echo " M4 " $@;
291 AM_V_XSLT = $(AM_V_XSLT_$(V))
292 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
293 AM_V_XSLT_0 = @echo " XSLT " $@;
295 AM_V_GPERF = $(AM_V_GPERF_$(V))
296 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
297 AM_V_GPERF_0 = @echo " GPERF " $@;
299 AM_V_LN = $(AM_V_LN_$(V))
300 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
301 AM_V_LN_0 = @echo " LN " $@;
303 AM_V_RM = $(AM_V_RM_$(V))
304 AM_V_RM_ = $(AM_V_RM_$(AM_DEFAULT_VERBOSITY))
305 AM_V_RM_0 = @echo " RM " $@;
307 # ------------------------------------------------------------------------------
310 rootlibexec_PROGRAMS =
311 systemgenerator_PROGRAMS =
312 dist_bashcompletion_DATA =
313 dist_zshcompletion_DATA =
321 src/libelogind/sd-bus/PORTING-DBUS1 \
322 src/libelogind/sd-bus/DIFFERENCES \
323 src/libelogind/sd-bus/GVARIANT-SERIALIZATION
325 @INTLTOOL_POLICY_RULE@
327 # ------------------------------------------------------------------------------
332 include Makefile-man.am
334 .PHONY: man update-man-list
335 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
338 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
340 ${XML_FILES:.xml=.html}
342 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
359 $(AM_V_at)$(MKDIR_P) $(dir $@)
360 $(AM_V_LN)$(LN_S) -f ../../man $@
375 tools/make-man-index.py \
376 tools/make-directive-index.py \
379 # ------------------------------------------------------------------------------
380 noinst_LTLIBRARIES += \
383 libelogind_shared_la_SOURCES = \
384 src/shared/capability.c \
385 src/shared/capability.h \
386 src/shared/linux/auto_dev-ioctl.h \
387 src/shared/ioprio.h \
388 src/shared/missing.h \
389 src/shared/initreq.h \
390 src/shared/securebits.h \
391 src/shared/special.h \
393 src/shared/unaligned.h \
396 src/shared/sparse-endian.h \
397 src/shared/refcnt.h \
398 src/shared/udev-util.h \
399 src/shared/device-nodes.c \
400 src/shared/device-nodes.h \
405 src/shared/architecture.c \
406 src/shared/architecture.h \
407 src/shared/efivars.c \
408 src/shared/efivars.h \
409 src/shared/fstab-util.c \
410 src/shared/fstab-util.h \
411 src/shared/path-util.c \
412 src/shared/path-util.h \
413 src/shared/time-util.c \
414 src/shared/time-util.h \
415 src/shared/locale-util.c \
416 src/shared/locale-util.h \
417 src/shared/mempool.c \
418 src/shared/mempool.h \
419 src/shared/hashmap.c \
420 src/shared/hashmap.h \
421 src/shared/siphash24.c \
422 src/shared/siphash24.h \
428 src/shared/sleep-config.c \
429 src/shared/sleep-config.h \
432 src/shared/env-util.c \
433 src/shared/env-util.h \
434 src/shared/strbuf.c \
435 src/shared/strbuf.h \
436 src/shared/strxcpyx.c \
437 src/shared/strxcpyx.h \
438 src/shared/conf-parser.c \
439 src/shared/conf-parser.h \
442 src/shared/ratelimit.h \
443 src/shared/ratelimit.c \
444 src/shared/exit-status.c \
445 src/shared/exit-status.h \
448 src/shared/gunicode.c \
449 src/shared/gunicode.h \
452 src/shared/socket-util.c \
453 src/shared/socket-util.h \
454 src/shared/in-addr-util.c \
455 src/shared/in-addr-util.h \
456 src/shared/ether-addr-util.h \
457 src/shared/conf-files.c \
458 src/shared/conf-files.h \
459 src/shared/cgroup-util.c \
460 src/shared/cgroup-util.h \
461 src/shared/cgroup-show.c \
462 src/shared/cgroup-show.h \
463 src/shared/unit-name.c \
464 src/shared/unit-name.h \
465 src/shared/watchdog.c \
466 src/shared/watchdog.h \
467 src/shared/replace-var.c \
468 src/shared/replace-var.h \
469 src/shared/spawn-polkit-agent.c \
470 src/shared/spawn-polkit-agent.h \
471 src/shared/clock-util.c \
472 src/shared/clock-util.h \
473 src/shared/calendarspec.c \
474 src/shared/calendarspec.h \
475 src/shared/fileio.c \
476 src/shared/fileio.h \
477 src/shared/output-mode.h \
478 src/shared/MurmurHash2.c \
479 src/shared/MurmurHash2.h \
480 src/shared/acpi-fpdt.h \
481 src/shared/acpi-fpdt.c \
482 src/shared/boot-timestamps.h \
483 src/shared/boot-timestamps.c \
486 src/shared/smack-util.c \
487 src/shared/smack-util.h \
488 src/shared/apparmor-util.c \
489 src/shared/apparmor-util.h \
490 src/shared/ima-util.c \
491 src/shared/ima-util.h \
492 src/shared/ptyfwd.c \
493 src/shared/ptyfwd.h \
494 src/shared/errno-list.c \
495 src/shared/errno-list.h \
496 src/shared/af-list.c \
497 src/shared/af-list.h \
498 src/shared/arphrd-list.c \
499 src/shared/arphrd-list.h \
500 src/shared/cap-list.c \
501 src/shared/cap-list.h \
508 src/shared/selinux-util.c \
509 src/shared/selinux-util.h \
512 src/shared/socket-label.c \
513 src/shared/mkdir-label.c \
514 src/shared/fileio-label.h \
515 src/shared/fileio-label.c \
516 src/shared/bus-label.c \
517 src/shared/bus-label.h \
519 src/shared/clean-ipc.h \
520 src/shared/clean-ipc.c \
521 src/shared/login-shared.c \
522 src/shared/login-shared.h \
525 src/shared/barrier.c \
526 src/shared/barrier.h \
531 src/shared/base-filesystem.c \
532 src/shared/base-filesystem.h \
533 src/shared/memfd-util.c \
534 src/shared/memfd-util.h \
535 src/shared/uid-range.c \
536 src/shared/uid-range.h \
537 src/shared/nss-util.h \
540 src/shared/sigbus.c \
541 src/shared/sigbus.h \
543 src/shared/import-util.c \
544 src/shared/import-util.h \
545 src/shared/sysctl-util.c \
546 src/shared/sysctl-util.h
548 nodist_libelogind_shared_la_SOURCES = \
549 src/shared/errno-from-name.h \
550 src/shared/errno-to-name.h \
551 src/shared/af-from-name.h \
552 src/shared/af-to-name.h \
553 src/shared/arphrd-from-name.h \
554 src/shared/arphrd-to-name.h \
555 src/shared/cap-from-name.h \
556 src/shared/cap-to-name.h
558 libelogind_shared_la_CFLAGS = \
564 libelogind_shared_la_LIBADD = \
568 # ------------------------------------------------------------------------------
570 noinst_LTLIBRARIES += \
573 libelogind_acl_la_SOURCES = \
574 src/shared/acl-util.c \
575 src/shared/acl-util.h
577 libelogind_acl_la_CFLAGS = \
581 libelogind_acl_la_LIBADD = \
585 # ------------------------------------------------------------------------------
586 #noinst_LTLIBRARIES += \
589 elogind_core_la_SOURCES = \
592 src/core/unit-printf.c \
593 src/core/unit-printf.h \
598 src/core/transaction.c \
599 src/core/transaction.h \
600 src/core/load-fragment.c \
601 src/core/load-fragment.h \
608 src/core/bus-endpoint.c \
609 src/core/bus-endpoint.h \
610 src/core/bus-policy.c \
611 src/core/bus-policy.h \
614 src/core/snapshot.c \
615 src/core/snapshot.h \
628 src/core/load-dropin.c \
629 src/core/load-dropin.h \
636 src/core/dbus-manager.c \
637 src/core/dbus-manager.h \
638 src/core/dbus-unit.c \
639 src/core/dbus-unit.h \
640 src/core/dbus-job.c \
641 src/core/dbus-job.h \
642 src/core/dbus-service.c \
643 src/core/dbus-service.h \
644 src/core/dbus-socket.c \
645 src/core/dbus-socket.h \
646 src/core/dbus-busname.c \
647 src/core/dbus-busname.h \
648 src/core/dbus-target.c \
649 src/core/dbus-target.h \
650 src/core/dbus-snapshot.c \
651 src/core/dbus-snapshot.h \
652 src/core/dbus-device.c \
653 src/core/dbus-device.h \
654 src/core/dbus-swap.c \
655 src/core/dbus-swap.h \
656 src/core/dbus-timer.c \
657 src/core/dbus-timer.h \
658 src/core/dbus-path.c \
659 src/core/dbus-path.h \
660 src/core/dbus-slice.c \
661 src/core/dbus-slice.h \
662 src/core/dbus-scope.c \
663 src/core/dbus-scope.h \
664 src/core/dbus-execute.c \
665 src/core/dbus-execute.h \
666 src/core/dbus-kill.c \
667 src/core/dbus-kill.h \
668 src/core/dbus-cgroup.c \
669 src/core/dbus-cgroup.h \
672 src/core/selinux-access.c \
673 src/core/selinux-access.h \
674 src/core/selinux-setup.c \
675 src/core/selinux-setup.h \
676 src/core/smack-setup.c \
677 src/core/smack-setup.h \
678 src/core/ima-setup.c \
679 src/core/ima-setup.h \
680 src/core/locale-setup.h \
681 src/core/locale-setup.c \
682 src/core/hostname-setup.c \
683 src/core/hostname-setup.h \
684 src/core/machine-id-setup.c \
685 src/core/machine-id-setup.h \
686 src/core/kmod-setup.c \
687 src/core/kmod-setup.h \
688 src/core/namespace.c \
689 src/core/namespace.h \
692 src/core/audit-fd.c \
693 src/core/audit-fd.h \
694 src/core/show-status.c \
695 src/core/show-status.h \
696 src/core/failure-action.c \
697 src/core/failure-action.h
699 nodist_elogind_core_la_SOURCES = \
700 src/core/load-fragment-gperf.c \
701 src/core/load-fragment-gperf-nulstr.c
703 elogind_core_la_CFLAGS = \
708 elogind_core_la_LIBADD = \
709 libelogind-shared.la \
712 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
713 $(AM_V_at)$(MKDIR_P) $(dir $@)
714 $(AM_V_GEN)$(AWK) 'BEGIN{ keywords=0 ; FS="," ; print "extern const char load_fragment_gperf_nulstr[];" ; print "const char load_fragment_gperf_nulstr[] ="} ; keyword==1 { print "\"" $$1 "\\0\"" } ; /%%/ { keyword=1} ; END { print ";" }' < $< > $@
716 gperf_gperf_m4_sources = \
717 src/core/load-fragment-gperf.gperf.m4
719 gperf_txt_sources = \
720 src/shared/errno-list.txt \
721 src/shared/af-list.txt \
722 src/shared/arphrd-list.txt \
723 src/shared/cap-list.txt
726 $(gperf_gperf_m4_sources:-gperf.gperf.m4=-gperf.c) \
727 $(gperf_gperf_m4_sources:-gperf.gperf.m4=-gperf-nulstr.c) \
728 $(gperf_gperf_sources:-gperf.gperf=-gperf.c) \
729 $(gperf_txt_sources:-list.txt=-from-name.h) \
730 $(gperf_txt_sources:-list.txt=-to-name.h)
733 $(gperf_txt_sources:-list.txt=-from-name.gperf)
738 $(gperf_gperf_m4_sources) \
739 $(gperf_gperf_sources) \
740 $(gperf_txt_sources:-list.txt=-from-name.gperf)
745 %-from-name.gperf: %-list.txt
746 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
748 %-from-name.h: %-from-name.gperf
749 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@
752 src/shared/errno-list.txt:
753 $(AM_V_at)$(MKDIR_P) $(dir $@)
754 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - </dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' >$@
756 src/shared/errno-to-name.h: src/shared/errno-list.txt
757 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
760 src/shared/af-list.txt:
761 $(AM_V_at)$(MKDIR_P) $(dir $@)
762 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include sys/socket.h - </dev/null | grep -v AF_UNSPEC | grep -v AF_MAX | $(AWK) '/^#define[ \t]+AF_[^ \t]+[ \t]+PF_[^ \t]/ { print $$2; }' >$@
764 src/shared/af-to-name.h: src/shared/af-list.txt
765 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const af_names[] = { "} !/AF_FILE/ && !/AF_ROUTE/ && !/AF_LOCAL/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
768 src/shared/arphrd-list.txt:
769 $(AM_V_at)$(MKDIR_P) $(dir $@)
770 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include net/if_arp.h - </dev/null | $(AWK) '/^#define[ \t]+ARPHRD_[^ \t]+[ \t]+[^ \t]/ { print $$2; }' | sed -e 's/ARPHRD_//' >$@
772 src/shared/arphrd-to-name.h: src/shared/arphrd-list.txt
773 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const arphrd_names[] = { "} !/CISCO/ { printf "[ARPHRD_%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
775 src/shared/arphrd-from-name.gperf: src/shared/arphrd-list.txt
776 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct arphrd_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, ARPHRD_%s\n", $$1, $$1 }' <$< >$@
779 src/shared/cap-list.txt:
780 $(AM_V_at)$(MKDIR_P) $(dir $@)
781 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include linux/capability.h -include missing.h - </dev/null | $(AWK) '/^#define[ \t]+CAP_[A-Z_]+[ \t]+/ { print $$2; }' | grep -v CAP_LAST_CAP >$@
783 src/shared/cap-to-name.h: src/shared/cap-list.txt
784 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const capability_names[] = { "} { printf "[%s] = \"%s\",\n", $$1, tolower($$1) } END{print "};"}' <$< >$@
786 src/shared/cap-from-name.gperf: src/shared/cap-list.txt
787 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct capability_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
789 src/shared/cap-from-name.h: src/shared/cap-from-name.gperf
790 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_capability -H hash_capability_name -p -C <$< >$@
792 # ------------------------------------------------------------------------------
793 dist_factory_etc_DATA = \
794 factory/etc/nsswitch.conf
797 dist_factory_pam_DATA = \
798 factory/etc/pam.d/system-auth \
799 factory/etc/pam.d/other
802 # ------------------------------------------------------------------------------
803 noinst_LTLIBRARIES += \
804 libelogind-internal.la
806 libelogind_internal_la_SOURCES = \
807 src/systemd/sd-bus.h \
808 src/systemd/sd-bus-protocol.h \
809 src/systemd/sd-bus-vtable.h \
810 src/systemd/sd-utf8.h \
811 src/systemd/sd-event.h \
812 src/systemd/sd-rtnl.h \
813 src/systemd/sd-resolve.h \
814 src/systemd/sd-login.h \
815 src/systemd/sd-id128.h \
816 src/systemd/sd-daemon.h \
817 src/systemd/sd-path.h \
818 src/systemd/sd-network.h \
819 src/systemd/sd-device.h \
820 src/libelogind/sd-bus/sd-bus.c \
821 src/libelogind/sd-bus/bus-control.c \
822 src/libelogind/sd-bus/bus-control.h \
823 src/libelogind/sd-bus/bus-error.c \
824 src/libelogind/sd-bus/bus-error.h \
825 src/libelogind/sd-bus/bus-common-errors.h \
826 src/libelogind/sd-bus/bus-common-errors.c \
827 src/libelogind/sd-bus/bus-internal.c \
828 src/libelogind/sd-bus/bus-internal.h \
829 src/libelogind/sd-bus/bus-socket.c \
830 src/libelogind/sd-bus/bus-socket.h \
831 src/libelogind/sd-bus/bus-kernel.c \
832 src/libelogind/sd-bus/bus-kernel.h \
833 src/libelogind/sd-bus/bus-container.c \
834 src/libelogind/sd-bus/bus-container.h \
835 src/libelogind/sd-bus/bus-message.c \
836 src/libelogind/sd-bus/bus-message.h \
837 src/libelogind/sd-bus/bus-creds.c \
838 src/libelogind/sd-bus/bus-creds.h \
839 src/libelogind/sd-bus/bus-signature.c \
840 src/libelogind/sd-bus/bus-signature.h \
841 src/libelogind/sd-bus/bus-type.c \
842 src/libelogind/sd-bus/bus-type.h \
843 src/libelogind/sd-bus/bus-match.c \
844 src/libelogind/sd-bus/bus-match.h \
845 src/libelogind/sd-bus/bus-bloom.c \
846 src/libelogind/sd-bus/bus-bloom.h \
847 src/libelogind/sd-bus/bus-introspect.c \
848 src/libelogind/sd-bus/bus-introspect.h \
849 src/libelogind/sd-bus/bus-objects.c \
850 src/libelogind/sd-bus/bus-objects.h \
851 src/libelogind/sd-bus/bus-gvariant.c \
852 src/libelogind/sd-bus/bus-gvariant.h \
853 src/libelogind/sd-bus/bus-convenience.c \
854 src/libelogind/sd-bus/bus-track.c \
855 src/libelogind/sd-bus/bus-track.h \
856 src/libelogind/sd-bus/bus-util.c \
857 src/libelogind/sd-bus/bus-util.h \
858 src/libelogind/sd-bus/bus-slot.c \
859 src/libelogind/sd-bus/bus-slot.h \
860 src/libelogind/sd-bus/bus-protocol.h \
861 src/libelogind/sd-bus/kdbus.h \
862 src/libelogind/sd-utf8/sd-utf8.c \
863 src/libelogind/sd-event/sd-event.c \
864 src/libelogind/sd-event/event-util.h \
865 src/libelogind/sd-rtnl/sd-rtnl.c \
866 src/libelogind/sd-rtnl/rtnl-internal.h \
867 src/libelogind/sd-rtnl/rtnl-message.c \
868 src/libelogind/sd-rtnl/rtnl-types.h \
869 src/libelogind/sd-rtnl/rtnl-types.c \
870 src/libelogind/sd-rtnl/rtnl-util.h \
871 src/libelogind/sd-rtnl/rtnl-util.c \
872 src/libelogind/sd-rtnl/local-addresses.h \
873 src/libelogind/sd-rtnl/local-addresses.c \
874 src/libelogind/sd-id128/sd-id128.c \
875 src/libelogind/sd-daemon/sd-daemon.c \
876 src/libelogind/sd-login/sd-login.c \
877 src/libelogind/sd-path/sd-path.c \
878 src/libelogind/sd-network/sd-network.c \
879 src/libelogind/sd-network/network-util.h \
880 src/libelogind/sd-network/network-util.c \
881 src/libelogind/sd-device/device-internal.h \
882 src/libelogind/sd-device/device-util.h \
883 src/libelogind/sd-device/sd-device.c \
884 src/libelogind/sd-device/device-private.c \
885 src/libelogind/sd-device/device-private.h
887 nodist_libelogind_internal_la_SOURCES = \
888 src/libelogind/libelogind.sym
890 libelogind_internal_la_CFLAGS = \
895 src/libelogind/libelogind.sym
898 libelogind_internal_la_LIBADD = \
902 libelogind_internal_la_LDFLAGS = \
904 -version-info $(LIBELOGIND_CURRENT):$(LIBELOGIND_REVISION):$(LIBELOGIND_AGE) \
905 -Wl,--version-script=$(top_builddir)/src/libelogind/libelogind.sym
907 libelogind-install-hook:
908 libname=libelogind.so && $(move-to-rootlibdir)
910 libelogind-uninstall-hook:
911 rm -f $(DESTDIR)$(rootlibdir)/libelogind.so*
913 INSTALL_EXEC_HOOKS += libelogind-install-hook
914 UNINSTALL_EXEC_HOOKS += libelogind-uninstall-hook
916 pkgconfiglib_DATA += \
917 src/libelogind/libsystemd.pc
919 pkginclude_HEADERS += \
920 src/systemd/sd-login.h
922 # ------------------------------------------------------------------------------
927 nodist_elogind_SOURCES = \
928 src/login/logind-gperf.c
933 libelogind_core_la_SOURCES = \
934 src/login/logind-core.c \
935 src/login/logind-device.c \
936 src/login/logind-device.h \
937 src/login/logind-button.c \
938 src/login/logind-button.h \
939 src/login/logind-action.c \
940 src/login/logind-action.h \
941 src/login/logind-seat.c \
942 src/login/logind-seat.h \
943 src/login/logind-session.c \
944 src/login/logind-session.h \
945 src/login/logind-session-device.c \
946 src/login/logind-session-device.h \
947 src/login/logind-user.c \
948 src/login/logind-user.h \
949 src/login/logind-inhibit.c \
950 src/login/logind-inhibit.h \
951 src/login/logind-dbus.c \
952 src/login/logind-session-dbus.c \
953 src/login/logind-seat-dbus.c \
954 src/login/logind-user-dbus.c \
955 src/login/logind-acl.h
957 libelogind_core_la_LIBADD = \
959 libelogind-internal.la
962 libelogind_core_la_SOURCES += \
963 src/login/logind-acl.c
965 libelogind_core_la_LIBADD += \
969 noinst_LTLIBRARIES += \
972 rootlibexec_PROGRAMS += \
976 src/login/loginctl.c \
977 src/login/sysfs-show.h \
978 src/login/sysfs-show.c
982 libelogind-internal.la \
985 rootbin_PROGRAMS += \
988 dist_bashcompletion_DATA += \
989 shell-completion/bash/loginctl
991 dist_zshcompletion_DATA += \
992 shell-completion/zsh/_loginctl \
993 shell-completion/zsh/_systemd-inhibit
995 systemd_inhibit_SOURCES = \
998 systemd_inhibit_LDADD = \
999 libelogind-internal.la \
1000 libelogind-shared.la
1002 rootbin_PROGRAMS += \
1005 test_login_SOURCES = \
1006 src/libelogind/sd-login/test-login.c
1008 test_login_LDADD = \
1009 libelogind-internal.la \
1010 libelogind-shared.la
1012 test_login_shared_SOURCES = \
1013 src/login/test-login-shared.c
1015 test_login_shared_LDADD = \
1016 libelogind-internal.la \
1017 libelogind-shared.la
1019 test_inhibit_SOURCES = \
1020 src/login/test-inhibit.c
1022 test_inhibit_LDADD = \
1023 libelogind-internal.la \
1024 libelogind-shared.la
1026 test_login_tables_SOURCES = \
1027 src/login/test-login-tables.c
1029 test_login_tables_LDADD = \
1041 pam_elogind_la_SOURCES = \
1042 src/login/pam_elogind.sym \
1043 src/login/pam_elogind.c
1045 pam_elogind_la_CFLAGS = \
1050 pam_elogind_la_LDFLAGS = \
1056 -Wl,--version-script=$(top_srcdir)/src/login/pam_elogind.sym
1058 pam_elogind_la_LIBADD = \
1059 libelogind-internal.la \
1062 pamlib_LTLIBRARIES = \
1065 dist_pamconf_DATA = \
1066 src/login/elogind-user
1070 dist_dbussystemservice_DATA += \
1071 src/login/org.freedesktop.login1.service
1073 dist_dbuspolicy_DATA += \
1074 src/login/org.freedesktop.login1.conf
1076 dist_pkgsysconf_DATA += \
1077 src/login/logind.conf
1079 polkitpolicy_files += \
1080 src/login/org.freedesktop.login1.policy
1085 SYSTEM_UNIT_ALIASES += \
1086 elogind.service dbus-org.freedesktop.login1.service
1088 dist_udevrules_DATA = \
1089 src/login/70-uaccess.rules \
1090 src/login/70-power-switch.rules
1092 nodist_udevrules_DATA = \
1093 src/login/71-seat.rules \
1094 src/login/73-seat-late.rules
1096 polkitpolicy_in_files += \
1097 src/login/org.freedesktop.login1.policy.in
1099 gperf_gperf_sources = \
1100 src/login/logind-gperf.gperf
1103 src/login/71-seat.rules.in \
1104 src/login/73-seat-late.rules.in
1106 # ------------------------------------------------------------------------------
1108 '|rootlibexecdir=$(rootlibexecdir)|' \
1109 '|rootbindir=$(rootbindir)|' \
1110 '|bindir=$(bindir)|' \
1111 '|pkgsysconfdir=$(pkgsysconfdir)|' \
1112 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
1113 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
1114 '|pkgdatadir=$(pkgdatadir)|' \
1115 '|systemunitdir=$(systemunitdir)|' \
1116 '|userunitdir=$(userunitdir)|' \
1117 '|systempresetdir=$(systempresetdir)|' \
1118 '|userpresetdir=$(userpresetdir)|' \
1119 '|udevrulesdir=$(udevrulesdir)|' \
1120 '|catalogdir=$(catalogdir)|' \
1121 '|tmpfilesdir=$(tmpfilesdir)|' \
1122 '|sysusersdir=$(sysusersdir)|' \
1123 '|sysctldir=$(sysctldir)|' \
1124 '|systemgeneratordir=$(systemgeneratordir)|' \
1125 '|usergeneratordir=$(usergeneratordir)|' \
1126 '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \
1127 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
1128 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
1129 '|PACKAGE_URL=$(PACKAGE_URL)|' \
1130 '|RANDOM_SEED_DIR=$(localstatedir)/lib/elogind/|' \
1131 '|RANDOM_SEED=$(localstatedir)/lib/elogind/random-seed|' \
1132 '|prefix=$(prefix)|' \
1133 '|exec_prefix=$(exec_prefix)|' \
1134 '|libdir=$(libdir)|' \
1135 '|includedir=$(includedir)|' \
1136 '|VERSION=$(VERSION)|' \
1137 '|rootprefix=$(rootprefix)|' \
1138 '|udevlibexecdir=$(udevlibexecdir)|' \
1139 '|SUSHELL=$(SUSHELL)|' \
1140 '|SULOGIN=$(SULOGIN)|' \
1141 '|DEBUGTTY=$(DEBUGTTY)|' \
1144 '|MKDIR_P=$(MKDIR_P)|' \
1145 '|QUOTAON=$(QUOTAON)|' \
1146 '|QUOTACHECK=$(QUOTACHECK)|' \
1147 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
1148 '|VARLOGDIR=$(varlogdir)|' \
1149 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
1150 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
1151 '|PYTHON=$(PYTHON)|' \
1152 '|PYTHON_BINARY=$(PYTHON_BINARY)|' \
1153 '|NTP_SERVERS=$(NTP_SERVERS)|' \
1154 '|DNS_SERVERS=$(DNS_SERVERS)|' \
1155 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
1156 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
1157 '|TTY_GID=$(TTY_GID)|' \
1158 '|systemsleepdir=$(systemsleepdir)|' \
1159 '|systemshutdowndir=$(systemshutdowndir)|' \
1160 '|binfmtdir=$(binfmtdir)|' \
1161 '|modulesloaddir=$(modulesloaddir)|'
1164 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1165 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
1174 sysctl.d/%: sysctl.d/%.in
1183 src/core/macros.%: src/core/macros.%.in
1186 src/%.policy.in: src/%.policy.in.in
1189 shell-completion/%: shell-completion/%.in
1200 $(AM_V_GEN)chmod +x $@
1202 src/%.c: src/%.gperf
1203 $(AM_V_at)$(MKDIR_P) $(dir $@)
1204 $(AM_V_GPERF)$(GPERF) < $< > $@
1207 $(AM_V_at)$(MKDIR_P) $(dir $@)
1208 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
1210 sysusers.d/%: sysusers.d/%.m4
1211 $(AM_V_at)$(MKDIR_P) $(dir $@)
1212 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
1214 tmpfiles.d/%: tmpfiles.d/%.m4
1215 $(AM_V_at)$(MKDIR_P) $(dir $@)
1216 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
1220 $(AM_V_at)$(MKDIR_P) $(dir $@)
1221 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
1223 units/user/%: units/user/%.m4
1224 $(AM_V_at)$(MKDIR_P) $(dir $@)
1225 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
1228 nodist_polkitpolicy_DATA = \
1229 $(polkitpolicy_files) \
1230 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
1234 $(polkitpolicy_in_files) \
1235 $(polkitpolicy_in_in_files)
1237 # ------------------------------------------------------------------------------
1239 man/custom-entities.ent: configure.ac
1240 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
1241 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
1242 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
1246 man/custom-entities.ent
1251 --stringparam man.output.quietly 1 \
1252 --stringparam funcsynopsis.style ansi \
1253 --stringparam man.authors.section.enabled 0 \
1254 --stringparam man.copyright.section.enabled 0 \
1255 --stringparam elogind.version $(VERSION) \
1256 --path '$(builddir)/man:$(srcdir)/man'
1258 XSLTPROC_PROCESS_MAN = \
1259 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
1261 XSLTPROC_PROCESS_HTML = \
1262 $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
1264 man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
1265 $(XSLTPROC_PROCESS_MAN)
1267 man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
1268 $(XSLTPROC_PROCESS_MAN)
1270 man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
1271 $(XSLTPROC_PROCESS_MAN)
1273 man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
1274 $(XSLTPROC_PROCESS_MAN)
1276 man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
1277 $(XSLTPROC_PROCESS_MAN)
1279 man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
1280 $(XSLTPROC_PROCESS_HTML)
1283 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
1289 man/custom-html.xsl \
1292 install-exec-hook: $(INSTALL_EXEC_HOOKS)
1294 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
1296 install-data-hook: $(INSTALL_DATA_HOOKS)
1298 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
1300 clean-local: $(CLEAN_LOCAL_HOOKS)
1301 rm -rf $(abs_srcdir)/install-tree
1303 DISTCHECK_CONFIGURE_FLAGS = \
1304 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
1305 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
1306 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
1307 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
1308 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
1309 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
1310 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
1311 --with-rootprefix=$$dc_install_base \
1312 --disable-split-usr \
1315 DISTCHECK_CONFIGURE_FLAGS += \
1316 --with-sysvinit-path= \
1317 --with-sysvrcnd-path=
1320 DISTCHECK_CONFIGURE_FLAGS += \
1325 # Require python when making dist
1327 .PHONY: dist-check-help
1329 dist-check-help: $(rootbin_PROGRAMS) $(bin_PROGRAMS)
1330 for i in $(abspath $^); do \
1331 if $$i --help | grep -v 'default:' | grep -E -q '.{80}.' ; then \
1332 echo "$(basename $$i) --help output is too wide:"; \
1333 $$i --help | awk 'length > 80' | grep -E --color=yes '.{80}'; \
1337 dist: dist-check-python