fix policy.xml to not have templates for generated interfaces

This commit is contained in:
Chris PeBenito 2005-06-01 17:45:06 +00:00
parent 2fc84fd172
commit 3c62aa31a9

View File

@ -271,7 +271,9 @@ xml: policy.xml
policy.xml: $(ALL_INTERFACES) tmp/generated_definitions.conf policy.xml: $(ALL_INTERFACES) tmp/generated_definitions.conf
@echo "Creating $@" @echo "Creating $@"
$(QUIET) echo "<policy>" > $@ $(QUIET) echo "<policy>" > $@
$(QUIET) egrep -h "^##[[:space:]]" $^ | sed -e 's/^##[[:space:]]//g' >> $@ # process this through m4 to eliminate the generated definitions.
# currently these are only in corenetwork.if
$(QUIET) m4 $^ | egrep -h "^##[[:space:]]" | sed -e 's/^##[[:space:]]//g' >> $@
$(QUIET) echo "</policy>" >> $@ $(QUIET) echo "</policy>" >> $@
######################################## ########################################