diff --git a/refpolicy/Rules.modular b/refpolicy/Rules.modular index 2a04843f..a6888f86 100644 --- a/refpolicy/Rules.modular +++ b/refpolicy/Rules.modular @@ -151,7 +151,10 @@ tmp/%.mod: $(M4SUPPORT) tmp/generated_definitions.conf tmp/all_interfaces.conf % $(QUIET) m4 $(M4PARAM) -s $^ > $(@:.mod=.tmp) $(QUIET) $(CHECKMODULE) -m $(@:.mod=.tmp) -o $@ -%.pp: tmp/%.mod %.fc +tmp/%.mod.fc: $(M4SUPPORT) %.fc + $(QUIET) m4 $(M4PARAM) $(M4SUPPORT) $^ > $@ + +%.pp: tmp/%.mod tmp/%.mod.fc @echo "Creating $(NAME) $(@F) policy package" $(QUIET) $(SEMOD_PKG) $@ $^