Error if someone uses the sub-makefile directly

This commit is contained in:
Tim Hockin
2016-08-22 14:04:59 -07:00
parent 45e557e237
commit af13e1d325
2 changed files with 7 additions and 1 deletions

View File

@@ -278,4 +278,4 @@ $(notdir $(abspath $(wildcard federation/cmd/*/))): generated_files
# make generated_files
.PHONY: generated_files
generated_files:
$(MAKE) -f Makefile.$@ $@
$(MAKE) -f Makefile.$@ $@ CALLED_FROM_MAIN_MAKEFILE=1