X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=mk%2Ftarget.mk;h=6a0b5aa8a8eaaeab46085d14b4c45dc6adc77682;hb=693550d93040439ac20d7ab3bfcaee8ca5b7e923;hp=73ef01fca63acae79227ca45da703dec0afeab83;hpb=5c367e131170d29524e278863515d88e5d63517a;p=ghc-hetmet.git diff --git a/mk/target.mk b/mk/target.mk index 73ef01f..6a0b5aa 100644 --- a/mk/target.mk +++ b/mk/target.mk @@ -1034,6 +1034,11 @@ maintainer-clean:: extraclean # Expects: $(WAYS) the possible "way" strings to one of # which $(way) will be set +ifneq "$(way)" "" +ifeq "$(findstring $(way), $(WAYS))" "" +$(error Unknown way $(way)) +endif +endif # So how does $(way) ever get set to anything? Answer, we recursively # invoke make, setting $(way) on the command line. @@ -1163,7 +1168,7 @@ endif # the --no-print-directory flag which is passed to recursive # invocations of make. # -#ifeq "$(way)" "" +ifeq "$(way)" "" ifneq "$(SUBDIRS)" "" # we override the 'boot', 'all' and 'install' targets in the top @@ -1210,7 +1215,7 @@ $(ALL_TARGET) docs runtests $(BOOT_TARGET) TAGS clean distclean mostlyclean main @echo "------------------------------------------------------------------------" endif -#endif +endif # # Selectively building subdirectories.