From: Alan T. DeKok Date: Wed, 9 Dec 2020 13:02:48 +0000 (-0500) Subject: add post-make / clean rules X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6402d979e282c1b123656f112e9c0b3cbddfb517;p=thirdparty%2Ffreeradius-server.git add post-make / clean rules so that we can update the build system to load (and clean) the libraries we built --- diff --git a/scripts/build/dlopen.mk b/scripts/build/dlopen.mk index 1c3a2cad9ec..08172c8d9f4 100644 --- a/scripts/build/dlopen.mk +++ b/scripts/build/dlopen.mk @@ -1,5 +1,8 @@ -TARGET = libfreeradius-make-dlopen.a -SOURCES = dlopen.c log.c +TARGET := libfreeradius-make-dlopen.a +SOURCES := dlopen.c log.c + +TGT_POSTMAKE := echo "load ${BUILD_DIR}/lib/.libs/libfreeradius-make-dlopen.${LIBRARY_EXT}(dlopen_gmk_setup)" > ${BUILD_DIR}/make/$(notdir $(lastword $(MAKEFILE_LIST))) +TGT_POSTCLEAN := rm -f ${BUILD_DIR}/make/$(notdir $(lastword $(MAKEFILE_LIST))) # # If we're building this target, then don't try to use it until we know diff --git a/scripts/build/version.mk b/scripts/build/version.mk index be9cfe06883..87561858abd 100644 --- a/scripts/build/version.mk +++ b/scripts/build/version.mk @@ -1,6 +1,9 @@ TARGET := libfreeradius-make-version.a SOURCES := version.c log.c +TGT_POSTMAKE := echo "load ${BUILD_DIR}/lib/.libs/libfreeradius-make-version.${LIBRARY_EXT}(version_gmk_setup)" > ${BUILD_DIR}/make/$(notdir $(lastword $(MAKEFILE_LIST))) +TGT_POSTCLEAN := rm -f ${BUILD_DIR}/make/$(notdir $(lastword $(MAKEFILE_LIST))) + # # If we're building this target, then don't try to use it until we know # that building the target succeeds.