X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=Makefile;h=4a999c6d604e6a45ef47896d9b31ab5388b677b2;hp=0c93680467824a69a7a00cf24ad43adc3a1a6ddb;hb=50027272414438955dbc41696541cbd25da55883;hpb=4f4e61a3e5c29075acc8d5128fd93e81b4116550 diff --git a/Makefile b/Makefile index 0c93680..4a999c6 100644 --- a/Makefile +++ b/Makefile @@ -9,12 +9,6 @@ TOP=. include $(TOP)/mk/boilerplate.mk -# -# Totally evil hack to make the setting of SUBDIRS be dependent -# on whether we do `make install' or not. Having a $(ifeq ... ) would -# be preferable.. -CURRENT_TARGET = $(MAKECMDGOALS) - # find the projects that actually exist... SUBDIRS = $(filter $(patsubst %/, %, $(wildcard */)), $(AllProjects)) @@ -29,6 +23,10 @@ ifneq "$(Project)" "" include $(shell echo $(Project) | tr A-Z a-z)/mk/config.mk endif +# ----------------------------------------------------------------------------- +# Certain targets require that Project is set from the command line. + +CURRENT_TARGET = $(MAKECMDGOALS) project-check : @if [ "$(Project)" = "" ]; then \ echo " You need to set \"Project\" in order to make $(CURRENT_TARGET)"; \