From 88940b71f81525b1080fcdd5a029537e9a85ca38 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Fri, 11 Nov 2011 01:33:51 +0100 Subject: [PATCH] build: simplify optional dirs/files in Makefile.am processing --- Makefile.am | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/Makefile.am b/Makefile.am index 4b8f020..e21060f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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