chiark / gitweb /
build-sys: check that compat-libs are enabled for "make dist"
authorFilipe Brandenburger <filbranden@google.com>
Tue, 17 Jun 2014 03:54:54 +0000 (20:54 -0700)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 20 Jun 2014 22:44:40 +0000 (18:44 -0400)
Running "make dist" requires --enable-compat-libs since DIST_SOURCES will list
generated files such as libsystemd-daemon.c.

Tested:
  $ ./configure && make && make dist
  *** compat-libs must be enabled in order to make dist
  make: *** [dist-check-compat-libs] Error 1

Makefile.am

index 96598561365d8178ae21e4a5d8077e26e7c0378c..b48b122f35e18c49b7b8fd1f25c6a8e399206d52 100644 (file)
@@ -5379,7 +5379,13 @@ if !HAVE_PYTHON
        @false
 endif
 
        @false
 endif
 
-dist: dist-check-python
+dist-check-compat-libs:
+if !ENABLE_COMPAT_LIBS
+       @echo "*** compat-libs must be enabled in order to make dist"
+       @false
+endif
+
+dist: dist-check-python dist-check-compat-libs
 
 # check "broken" platforms limited toolchains for link breakage before we release
 .PHONY: linkcheck
 
 # check "broken" platforms limited toolchains for link breakage before we release
 .PHONY: linkcheck