]> granicus.if.org Git - libnl/commitdiff
build: simplify optional dirs/files in Makefile.am processing
authorJan Engelhardt <jengelh@medozas.de>
Fri, 11 Nov 2011 00:33:51 +0000 (01:33 +0100)
committerThomas Graf <tgraf@redhat.com>
Fri, 11 Nov 2011 10:55:29 +0000 (11:55 +0100)
Makefile.am

index 4b8f020e6f4096a31cfd15bc4656162bb06ca1c4..e21060fcbce7bcda5cc9be2501828d0ad43c7cb8 100644 (file)
@@ -2,21 +2,17 @@
 
 ACLOCAL_AMFLAGS = -I m4
 
-OPT_DIRS =
-PKGCONFIGS =
-
-if ENABLE_CLI
-OPT_DIRS += src
-PKGCONFIGS += libnl-cli-3.0.pc
-endif
-
-SUBDIRS = include lib doc man python $(OPT_DIRS)
+SUBDIRS = include lib doc man python
 
 pkgconfig_DATA = libnl-3.0.pc \
                 libnl-route-3.0.pc \
                 libnl-genl-3.0.pc \
-                libnl-nf-3.0.pc \
-                $(PKGCONFIGS)
+                libnl-nf-3.0.pc
+
+if ENABLE_CLI
+SUBDIRS += src
+pkgconfig_DATA += libnl-cli-3.0.pc
+endif
 
 
 pkgsysconfdir = ${sysconfdir}/libnl