[lldp-devel] [PATCH] lldpad: fix creation of config directory from make install

Eric Multanen eric.w.multanen at intel.com
Tue Mar 12 15:43:04 UTC 2013


A bug fix in automake caused the method of creating the
empty /var/lib/lldpad directory (which holds the lldpad.conf
file) to fail during 'make install'.  This patch fixes the
issue.

Signed-off-by: Eric Multanen <eric.w.multanen at intel.com>
---
 Makefile.am |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Makefile.am b/Makefile.am
index 0257a5f..fa4484c 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -103,7 +103,9 @@ endif
 
 ## force the creation of an empty configuration directory at install time
 lldpadconfigdir = /var/lib/lldpad
-lldpadconfig_DATA =
+installdirs-local:	
+	$(MKDIR_P) $(DESTDIR)$(lldpadconfigdir)
+install-data-hook:	installdirs-local
 
 ## pkg-config data file, for client interface software to find headers
 pkgconfigdir = ${libdir}/pkgconfig



More information about the lldp-devel mailing list