]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
added make list
authorYann Collet <cyan@fb.com>
Tue, 18 Apr 2017 21:34:24 +0000 (14:34 -0700)
committerYann Collet <cyan@fb.com>
Tue, 18 Apr 2017 21:34:24 +0000 (14:34 -0700)
Makefile

index 7e57e1680fcdd82886bc2593a7805dc6933dc360..dc2ac4ce0d1187f58180a8f60529dbbe912e14d0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -109,10 +109,15 @@ clean:
 # make install is validated only for Linux, OSX, Hurd and some BSD targets
 #------------------------------------------------------------------------------
 ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU FreeBSD DragonFly NetBSD))
+
 HOST_OS = POSIX
 CMAKE_PARAMS = -DZSTD_BUILD_CONTRIB:BOOL=ON -DZSTD_BUILD_STATIC:BOOL=ON -DZSTD_BUILD_TESTS:BOOL=ON
-.PHONY: install uninstall travis-install clangtest gpptest armtest usan asan uasan
 
+.PHONY: list
+list:
+       @$(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | egrep -v -e '^[^[:alnum:]]' -e '^$@$$' | xargs
+
+.PHONY: install uninstall travis-install clangtest gpptest armtest usan asan uasan
 install:
        @$(MAKE) -C $(ZSTDDIR) $@
        @$(MAKE) -C $(PRGDIR) $@