]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Remove dependency on directories for installation
authorAlan T. DeKok <aland@freeradius.org>
Wed, 7 Nov 2012 15:37:41 +0000 (10:37 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 7 Nov 2012 15:43:49 +0000 (10:43 -0500)
just create the directory

src/include/all.mk

index fce253f45d6d206d3229c87170e7f23e8cea1d04..170a81d5331ca9fabd976e15f48079de21c3fda8 100644 (file)
@@ -35,7 +35,7 @@ all: $(HEADERS_DY)
 src/include/features.h:
        @cp src/include/features-h src/include/features.h
        @grep -o "^\#define\s*WITH_.*" src/include/autoconf.h >> src/include/features.h
-       
+
 src/include/autoconf.sed:
        @grep ^#define src/include/autoconf.h | sed 's,/\*\*/,1,;' | awk '{print "\
        s,#[[:blank:]]*ifdef[[:blank:]]*" $$2 ",#if "$$3 ",g;\
@@ -59,16 +59,9 @@ SRC_INCLUDE_DIR := ${R}${includedir}/freeradius
 # the local rule depends on the installed headers
 install.src.include: $(addprefix ${SRC_INCLUDE_DIR}/,${HEADERS})
 
-# the installed headers require a directory
-$(addprefix ${SRC_INCLUDE_DIR}/,${HEADERS}): ${SRC_INCLUDE_DIR}/
-
-# make the directory
-.PHONY: 
-${SRC_INCLUDE_DIR}/:
-       $(INSTALL) -d -m 755 $@
-
 # install the headers by re-writing the local files
 ${SRC_INCLUDE_DIR}/%.h: ${top_srcdir}/src/include/%.h
        @echo INSTALL $(notdir $<)
+       @$(INSTALL) -d -m 755 $(dir $@)
        @sed 's/^#include <freeradius-devel/#include <freeradius/' < $< > $@
        @chmod 644 $@