diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-12-12T10·27+0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-12-12T10·27+0100 |
commit | 034bbcafafdbec0b2c4d29b1d5018bec20120e77 (patch) | |
tree | f818584e51b506bbe950dc6cff2b545e277b4d94 /mk/lib.mk | |
parent | 45131da736f21975e5b6d03f508b49f10621a30e (diff) |
Add 'make help'
Diffstat (limited to 'mk/lib.mk')
-rw-r--r-- | mk/lib.mk | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/mk/lib.mk b/mk/lib.mk index f093ee8e0d53..0b469a13a494 100644 --- a/mk/lib.mk +++ b/mk/lib.mk @@ -65,3 +65,27 @@ $(foreach test, $(INSTALL_TESTS), $(eval $(call run-install-test,$(test)))) all: $(programs_list) $(libs_list) + + +help: + @echo "The following targets are available:" + @echo "" + @echo " default: Build default targets" + @echo " install: Install into \$$(prefix) (currently set to '$(prefix)')" + @echo " clean: Delete generated files" + @echo " dryclean: Show what files would be deleted by 'make clean'" +ifdef PACKAGE_NAME + @echo " dist: Generate a source distribution" +endif +ifdef programs_list + @echo "" + @echo "The following programs can be built:" + @echo "" + @for i in $(programs_list); do echo " $$i"; done +endif +ifdef libs_list + @echo "" + @echo "The following libraries can be built:" + @echo "" + @for i in $(libs_list); do echo " $$i"; done +endif |