X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=Makefile.am;h=5bba4f990bf92e9e9b88232ce73d8d44e56c1268;hb=ec1a9f88f2a91d9358c254ea8098b4e9190fb146;hp=4a12d89b5e25681294e3ddc7281245d414533d4a;hpb=6af684ee5cf49f3d0fef16369c3c2782c8a73357;p=elogind.git diff --git a/Makefile.am b/Makefile.am index 4a12d89b5..5bba4f990 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,3 +1,5 @@ +# -*- Mode: makefile; indent-tabs-mode: t -*- */ +# # This file is part of systemd. # # Copyright 2010-2012 Lennart Poettering @@ -92,6 +94,10 @@ polkitpolicy_in_files = dist_udevrules_DATA = nodist_udevrules_DATA = dist_man_MANS = +dist_pkgsysconf_DATA = +dist_dbuspolicy_DATA = +dbusinterface_DATA = +dist_dbussystemservice_DATA = AM_CPPFLAGS = \ -include $(top_builddir)/config.h \ @@ -123,9 +129,7 @@ AM_CPPFLAGS = \ -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \ -I $(top_srcdir)/src \ -I $(top_srcdir)/src/shared \ - -I $(top_srcdir)/src/readahead \ -I $(top_srcdir)/src/login \ - -I $(top_srcdir)/src/journal \ -I $(top_srcdir)/src/systemd \ -I $(top_srcdir)/src/core \ -I $(top_srcdir)/src/udev @@ -238,31 +242,6 @@ noinst_PROGRAMS = \ test-install \ test-watchdog -dist_pkgsysconf_DATA = \ - src/system.conf \ - src/user.conf - -dist_dbuspolicy_DATA = \ - src/org.freedesktop.systemd1.conf - -dist_dbussystemservice_DATA = \ - src/org.freedesktop.systemd1.service - -dbusinterface_DATA = \ - org.freedesktop.systemd1.Manager.xml \ - org.freedesktop.systemd1.Job.xml \ - org.freedesktop.systemd1.Unit.xml \ - org.freedesktop.systemd1.Service.xml \ - org.freedesktop.systemd1.Socket.xml \ - org.freedesktop.systemd1.Timer.xml \ - org.freedesktop.systemd1.Target.xml \ - org.freedesktop.systemd1.Device.xml \ - org.freedesktop.systemd1.Mount.xml \ - org.freedesktop.systemd1.Automount.xml \ - org.freedesktop.systemd1.Snapshot.xml \ - org.freedesktop.systemd1.Swap.xml \ - org.freedesktop.systemd1.Path.xml - dist_bashcompletion_DATA = \ src/systemd-bash-completion.sh @@ -391,7 +370,6 @@ EXTRA_DIST += \ units/udev.service \ units/udev-trigger.service \ units/udev-settle.service \ - src/systemd.pc.in \ introspect.awk \ man/custom-html.xsl @@ -462,21 +440,6 @@ dist_doc_DATA = \ LICENSE.MIT \ DISTRO_PORTING -pkgconfigdata_DATA = \ - src/systemd.pc - -# First passed through sed, followed by intltool -polkitpolicy_in_in_files = \ - src/org.freedesktop.systemd1.policy.in.in - -nodist_polkitpolicy_DATA = \ - $(polkitpolicy_in_files:.policy.in=.policy) \ - $(polkitpolicy_in_in_files:.policy.in.in=.policy) - -EXTRA_DIST += \ - $(polkitpolicy_in_files) \ - $(polkitpolicy_in_in_files) - @INTLTOOL_POLICY_RULE@ # ------------------------------------------------------------------------------ @@ -556,6 +519,9 @@ noinst_LTLIBRARIES += \ libsystemd-shared.la libsystemd_shared_la_SOURCES = \ + src/missing.h \ + src/linux/auto_dev-ioctl.h \ + src/linux/fanotify.h \ src/shared/util.c \ src/shared/util.h \ src/shared/virt.c \ @@ -585,8 +551,6 @@ libsystemd_shared_la_SOURCES = \ src/shared/cgroup-util.h \ src/shared/dbus-common.c \ src/shared/dbus-common.h \ - src/shared/hostname-setup.c \ - src/shared/hostname-setup.h \ src/shared/logs-show.c \ src/shared/logs-show.h \ src/shared/cgroup-show.c \ @@ -597,14 +561,12 @@ libsystemd_shared_la_SOURCES = \ src/shared/utmp-wtmp.h \ src/shared/watchdog.c \ src/shared/watchdog.h \ - src/shared/umount.c \ - src/shared/umount.h \ src/shared/spawn-ask-password-agent.c \ src/shared/spawn-ask-password-agent.h \ src/shared/mount-setup.c \ src/shared/mount-setup.h \ - src/shared/machine-id-util.c \ - src/shared/machine-id-util.h \ + src/shared/machine-id-setup.c \ + src/shared/machine-id-setup.h \ src/shared/loopback-setup.h \ src/shared/loopback-setup.c \ src/shared/specifier.c \ @@ -612,7 +574,8 @@ libsystemd_shared_la_SOURCES = \ src/shared/spawn-polkit-agent.c \ src/shared/spawn-polkit-agent.h \ src/shared/list.h \ - src/shared/macro.h + src/shared/macro.h \ + src/shared/ask-password-api.h libsystemd_shared_la_CFLAGS = \ $(AM_CFLAGS) \ @@ -691,9 +654,6 @@ noinst_LTLIBRARIES += \ libsystemd_core_la_SOURCES = \ src/def.h \ - src/missing.h \ - src/linux/auto_dev-ioctl.h \ - src/linux/fanotify.h \ src/core/unit.c \ src/core/unit.h \ src/core/job.c \ @@ -766,6 +726,8 @@ libsystemd_core_la_SOURCES = \ src/core/kmod-setup.h \ src/core/locale-setup.h \ src/core/locale-setup.c \ + src/core/hostname-setup.c \ + src/core/hostname-setup.h \ src/core/fdset.c \ src/core/fdset.h \ src/core/condition.c \ @@ -781,17 +743,11 @@ libsystemd_core_la_SOURCES = \ src/core/special.h \ src/core/bus-errors.h \ src/core/build.h \ - src/core/ask-password-api.h \ - src/core/sysfs-show.h \ - src/core/polkit.h \ - src/core/dbus-loop.h + src/core/sysfs-show.h nodist_libsystemd_core_la_SOURCES = \ - src/load-fragment-gperf.c \ - src/load-fragment-gperf-nulstr.c - -EXTRA_DIST += \ - src/load-fragment-gperf.gperf.m4 + src/core/load-fragment-gperf.c \ + src/core/load-fragment-gperf-nulstr.c libsystemd_core_la_CFLAGS = \ $(AM_CFLAGS) \ @@ -813,6 +769,18 @@ libsystemd_core_la_LIBADD = \ $(CAP_LIBS) \ $(KMOD_LIBS) +src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf + $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ + $(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 ";" }' < $< > $@ || rm $@ + +EXTRA_DIST += \ + src/core/load-fragment-gperf.gperf.m4 + +CLEANFILES += \ + src/core/load-fragment-gperf.gperf \ + src/core/load-fragment-gperf.c \ + src/core/load-fragment-gperf-nulstr.c + # ------------------------------------------------------------------------------ systemd_SOURCES = \ src/core/main.c @@ -826,9 +794,48 @@ systemd_LDADD = \ libsystemd-daemon.la \ libsystemd-id128.la +dist_pkgsysconf_DATA += \ + src/core/system.conf \ + src/core/user.conf + +dist_dbuspolicy_DATA += \ + src/core/org.freedesktop.systemd1.conf + +dist_dbussystemservice_DATA += \ + src/core/org.freedesktop.systemd1.service + +dbusinterface_DATA += \ + org.freedesktop.systemd1.Manager.xml \ + org.freedesktop.systemd1.Job.xml \ + org.freedesktop.systemd1.Unit.xml \ + org.freedesktop.systemd1.Service.xml \ + org.freedesktop.systemd1.Socket.xml \ + org.freedesktop.systemd1.Timer.xml \ + org.freedesktop.systemd1.Target.xml \ + org.freedesktop.systemd1.Device.xml \ + org.freedesktop.systemd1.Mount.xml \ + org.freedesktop.systemd1.Automount.xml \ + org.freedesktop.systemd1.Snapshot.xml \ + org.freedesktop.systemd1.Swap.xml \ + org.freedesktop.systemd1.Path.xml + +polkitpolicy_in_in_files = \ + src/core/org.freedesktop.systemd1.policy.in.in + +org.freedesktop.systemd1.%.xml: systemd + $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.$* $< $@.tmp && \ + $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \ + $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp + +pkgconfigdata_DATA = \ + src/core/systemd.pc + +EXTRA_DIST += \ + src/core/systemd.pc.in + # ------------------------------------------------------------------------------ test_engine_SOURCES = \ - test/test-engine.c + src/test/test-engine.c test_engine_CFLAGS = \ $(AM_CFLAGS) \ @@ -839,7 +846,7 @@ test_engine_LDADD = \ libsystemd-daemon.la test_job_type_SOURCES = \ - test/test-job-type.c + src/test/test-job-type.c test_job_type_CFLAGS = \ $(AM_CFLAGS) \ @@ -849,51 +856,51 @@ test_job_type_LDADD = \ libsystemd-core.la test_ns_SOURCES = \ - test/test-ns.c + src/test/test-ns.c test_ns_LDADD = \ libsystemd-core.la test_loopback_SOURCES = \ - test/test-loopback.c + src/test/test-loopback.c test_loopback_LDADD = \ libsystemd-shared.la test_hostname_SOURCES = \ - test/test-hostname.c + src/test/test-hostname.c test_hostname_LDADD = \ - libsystemd-shared.la + libsystemd-core.la test_daemon_SOURCES = \ - test/test-daemon.c + src/test/test-daemon.c test_daemon_LDADD = \ libsystemd-shared.la \ libsystemd-daemon.la test_cgroup_SOURCES = \ - test/test-cgroup.c + src/test/test-cgroup.c test_cgroup_LDADD = \ libsystemd-label.la \ libsystemd-shared.la test_env_replace_SOURCES = \ - test/test-env-replace.c + src/test/test-env-replace.c test_env_replace_LDADD = \ libsystemd-shared.la test_strv_SOURCES = \ - test/test-strv.c + src/test/test-strv.c test_strv_LDADD = \ libsystemd-shared.la test_install_SOURCES = \ - test/test-install.c + src/test/test-install.c test_install_CFLAGS = \ $(AM_CFLAGS) \ @@ -904,7 +911,7 @@ test_install_LDADD = \ libsystemd-shared.la test_watchdog_SOURCES = \ - test/test-watchdog.c + src/test/test-watchdog.c test_watchdog_LDADD = \ libsystemd-shared.la @@ -950,7 +957,9 @@ pkginclude_HEADERS += \ # ------------------------------------------------------------------------------ systemd_shutdown_SOURCES = \ - src/shutdown.c + src/core/umount.c \ + src/core/umount.h \ + src/core/shutdown.c systemd_shutdown_LDADD = \ libsystemd-label.la \ @@ -979,7 +988,7 @@ systemd_tmpfiles_LDADD = \ # ------------------------------------------------------------------------------ systemd_machine_id_setup_SOURCES = \ - src/machine-id-setup.c + src/machine-id-setup/machine-id-setup-main.c systemd_machine_id_setup_LDADD = \ libsystemd-label.la \ @@ -1130,7 +1139,7 @@ systemd_nspawn_LDADD = \ # ------------------------------------------------------------------------------ systemd_stdio_bridge_SOURCES = \ - src/bridge.c + src/stdio-bridge/stdio-bridge.c systemd_stdio_bridge_LDADD = \ libsystemd-shared.la @@ -1863,7 +1872,7 @@ libsystemd_id128_la_LIBADD = \ libsystemd-shared.la test_id128_SOURCES = \ - test/test-id128.c + src/test/test-id128.c test_id128_LDADD = \ libsystemd-shared.la \ @@ -2352,7 +2361,8 @@ endif if ENABLE_HOSTNAMED systemd_hostnamed_SOURCES = \ src/hostname/hostnamed.c \ - src/polkit.c + src/polkit.c \ + src/polkit.h systemd_hostnamed_CFLAGS = \ $(AM_CFLAGS) \ @@ -2402,7 +2412,8 @@ endif if ENABLE_LOCALED systemd_localed_SOURCES = \ src/locale/localed.c \ - src/polkit.c + src/polkit.c \ + src/polkit.h systemd_localed_CFLAGS = \ $(AM_CFLAGS) \ @@ -2463,7 +2474,8 @@ endif if ENABLE_TIMEDATED systemd_timedated_SOURCES = \ src/timedate/timedated.c \ - src/polkit.c + src/polkit.c \ + src/polkit.h systemd_timedated_CFLAGS = \ $(AM_CFLAGS) \ @@ -2527,7 +2539,9 @@ systemd_logind_SOURCES = \ src/login/logind-seat-dbus.c \ src/login/logind-user-dbus.c \ src/dbus-loop.c \ + src/dbus-loop.h \ src/polkit.c \ + src/polkit.h \ src/login/logind-acl.h nodist_systemd_logind_SOURCES = \ @@ -2829,10 +2843,6 @@ src/%: src/%.m4 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ $(M4) -P $(M4_DEFINES) < $< > $@ || rm $@ -src/load-fragment-gperf-nulstr.c: src/load-fragment-gperf.gperf - $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ - $(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 ";" }' < $< > $@ || rm $@ - M4_PROCESS_SYSTEM = \ $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ $(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@ || rm $@ @@ -2847,16 +2857,21 @@ units/%: units/%.m4 Makefile units/user/%: units/%.m4 Makefile $(M4_PROCESS_USER) +nodist_polkitpolicy_DATA = \ + $(polkitpolicy_in_files:.policy.in=.policy) \ + $(polkitpolicy_in_in_files:.policy.in.in=.policy) + +EXTRA_DIST += \ + $(polkitpolicy_in_files) \ + $(polkitpolicy_in_in_files) + CLEANFILES += \ $(nodist_systemunit_DATA) \ $(nodist_userunit_DATA) \ $(nodist_man_MANS) \ $(pkgconfigdata_DATA) \ $(pkgconfiglib_DATA) \ - $(nodist_polkitpolicy_DATA) \ - src/load-fragment-gperf.gperf \ - src/load-fragment-gperf.c \ - src/load-fragment-gperf-nulstr.c + $(nodist_polkitpolicy_DATA) if HAVE_XSLTPROC XSLTPROC_FLAGS = \ @@ -2896,11 +2911,6 @@ endif DBUS_PREPROCESS = $(CPP) -P $(DBUS_CFLAGS) -imacros dbus/dbus-protocol.h -org.freedesktop.systemd1.%.xml: systemd - $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.$* $< $@.tmp && \ - $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \ - $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp - CLEANFILES += \ $(dbusinterface_DATA)