chiark / gitweb /
Revert "build-sys: include PolicyKit files as part of distribution"
[elogind.git] / Makefile.am
index 734e5c148ec43f0766969cd2b869b3895f1a7f47..220e99e8be79e4a7ade0644dc54909ce409e2a73 100644 (file)
@@ -3667,9 +3667,11 @@ tests += \
        test-mmap-cache \
        test-catalog
 
+if HAVE_COMPRESSION
 tests += \
        test-compress \
        test-compress-benchmark
+endif
 
 pkginclude_HEADERS += \
        src/systemd/sd-journal.h \
@@ -4497,6 +4499,25 @@ BUSNAMES_TARGET_WANTS += \
 EXTRA_DIST += \
        units/systemd-machined.service.in
 
+libnss_mymachines_la_SOURCES = \
+       src/nss-mymachines/nss-mymachines.sym \
+       src/nss-mymachines/nss-mymachines.c
+
+libnss_mymachines_la_LDFLAGS = \
+       $(AM_LDFLAGS) \
+       -module \
+       -export-dynamic \
+       -avoid-version \
+       -shared \
+       -shrext .so.2 \
+       -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
+
+libnss_mymachines_la_LIBADD = \
+       libsystemd-shared.la \
+       libsystemd-internal.la
+
+lib_LTLIBRARIES += \
+       libnss_mymachines.la
 endif
 
 # ------------------------------------------------------------------------------
@@ -5260,7 +5281,7 @@ units/user/%: units/%.m4
        $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
 
 if ENABLE_POLKIT
-dist_polkitpolicy_DATA = \
+nodist_polkitpolicy_DATA = \
        $(polkitpolicy_files) \
        $(polkitpolicy_in_in_files:.policy.in.in=.policy)
 endif