TGT_CHECK_LIBS :=
SOURCES :=
+ HEADERS :=
SRC_CFLAGS :=
SRC_CXXFLAGS :=
SRC_DEFS :=
# Save the list of source files for this target.
$${TGT}_SOURCES += $${SOURCES}
+ $${TGT}_HEADERS += $${HEADERS}
# Convert the source file names to their corresponding object file
# names.
# add rules to build the target
$$(eval $$(call ADD_TARGET_RULE$${$${TGT}_SUFFIX},$${TGT}))
+ # add rules to install the header files
+ ifneq "${HEADERS}" ""
+ $(foreach h, ${HEADERS},\
+ $(eval $(call ADD_INSTALL_RULE.h,${h},src/include/${h})))
+ endif
+
# generate the clean rule for this target.
$$(eval $$(call ADD_CLEAN_RULE,$${TGT}))
$(foreach D,$(patsubst %/,%,$(sort $(dir ${ALL_INSTALL}))),\
$(eval $(call ADD_INSTALL_RULE.dir,${D})))
-# Install all of the header files
-$(foreach h, $(ALL_HEADERS),\
- $(eval $(call ADD_INSTALL_RULE.h,${h},src/include/${h})))
-
scan: ${ALL_PLISTS}
.PHONY: clean.scan
BOOTSTRAP_BUILD += src/freeradius-devel $(addprefix src/include/,$(HEADERS_DY)) $(HEADERS_RFC)
scan: $(BOOTSTRAP_BUILD)
-######################################################################
-#
-# Installation
-ALL_HEADERS += $(HEADERS)
-
#
# Regenerate the headers if we re-run autoconf.
# This is to that changes to the build rules (e.g. PW_FOO -> FR_FOO)