]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
add post-make / clean rules
authorAlan T. DeKok <aland@freeradius.org>
Wed, 9 Dec 2020 13:02:48 +0000 (08:02 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 9 Dec 2020 14:48:13 +0000 (09:48 -0500)
so that we can update the build system to load (and clean)
the libraries we built

scripts/build/dlopen.mk
scripts/build/version.mk

index 1c3a2cad9ec6e3e0fe9bdc3103a303de86f52ef3..08172c8d9f48b9447d50f3bad9b42dd408db27fb 100644 (file)
@@ -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
index be9cfe068830dac9682243695774b73963fff8f0..87561858abd614005f8cba7f6ebee5146e81f866 100644 (file)
@@ -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.