X-Git-Url: http://rtime.felk.cvut.cz/gitweb/omk.git/blobdiff_plain/bf4982169966240ab2adbab340dcaacd30dfd51b..e4ecdcfc09ff0ee830581b1127ca78a0864ded86:/snippets/Makefile diff --git a/snippets/Makefile b/snippets/Makefile index 409b863..dbd9b51 100644 --- a/snippets/Makefile +++ b/snippets/Makefile @@ -1,2 +1,16 @@ -all: - $(MAKE) -C .. \ No newline at end of file +all: buildrules + +.PHONY: FORCE + +../rules/%/Makefile.rules: Makefile.rules.% FORCE + python ../omkbuild.py -o $@ $< + +TOP_LEVEL_SNIPPETS = $(filter-out %~,$(wildcard Makefile.rules.*)) +RULE_TYPES = $(TOP_LEVEL_SNIPPETS:Makefile.rules.%=%) + +buildrules: $(RULE_TYPES:%=../rules/%/Makefile.rules) + +RULES_TO_SPLIT ?= Makefile.rules + +split: + python ../omkbuild.py --split=$(RULES_TO_SPLIT)