From: Arran Cudbard-Bell Date: Thu, 3 Dec 2015 19:19:03 +0000 (-0500) Subject: Fix includes in installed headers X-Git-Tag: release_3_0_11~114 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0786f218979ad1d0e512d0499026ef98ed3d08b1;p=thirdparty%2Ffreeradius-server.git Fix includes in installed headers --- diff --git a/src/include/all.mk b/src/include/all.mk index e96f1471deb..f5dc28a31a4 100644 --- a/src/include/all.mk +++ b/src/include/all.mk @@ -140,7 +140,9 @@ $(SRC_INCLUDE_DIR): ${SRC_INCLUDE_DIR}/%.h: src/include/%.h | $(SRC_INCLUDE_DIR) @echo INSTALL $(notdir $<) @$(INSTALL) -d -m 755 `echo $(dir $@) | sed 's/\/$$//'` - @sed 's/^#include $@ +# Expression must deal with indentation after the hash and copy it to the substitution string. +# Hash not anchored to allow substitution in function documentation. + @sed -e 's/#\([\\t ]*\)include ]*\)>/#\1include /g' < $< > $@ @chmod 644 $@ install.src.include: $(addprefix ${SRC_INCLUDE_DIR}/,${HEADERS})