diff --git a/refpolicy/Rules.modular b/refpolicy/Rules.modular index 2a04843f2..a6888f862 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) $@ $^