add xml doc generation

This commit is contained in:
Chris PeBenito 2005-05-18 20:58:13 +00:00
parent 8623d5b854
commit 6d314fd3c1

View File

@ -183,14 +183,6 @@ tmp/all_attrs_types.conf tmp/only_te_rules.conf tmp/all_post.conf: tmp/all_te_fi
$(QUIET) grep ^genfscon tmp/all_te_files.conf >> tmp/all_post.conf || true
$(QUIET) sed -e /^attribute/d -e '/^type /d' -e /^genfscon/d < tmp/all_te_files.conf > tmp/only_te_rules.conf
########################################
#
# Construct file_contexts
#
$(FC): $(ALL_FC_FILES)
@test -d tmp || mkdir -p tmp
$(QUIET) m4 $(M4PARAM) $^ > $@
########################################
#
# Remove the dontaudit rules from the policy.conf
@ -201,6 +193,14 @@ enableaudit: policy.conf
$(QUIET) grep -v dontaudit policy.conf > tmp/policy.audit
$(QUIET) mv tmp/policy.audit policy.conf
########################################
#
# Construct file_contexts
#
$(FC): kernel/global.if $(ALL_FC_FILES)
@test -d tmp || mkdir -p tmp
$(QUIET) m4 $(M4PARAM) $^ > $@
########################################
#
# Filesystem labeling
@ -228,8 +228,21 @@ relabel: $(FC) $(SETFILES)
fi
$(QUIET) $(SETFILES) $(FC) $(FILESYSTEMS)
########################################
#
# Documentation generation
#
xml: policy.xml
policy.xml: $(ALL_INTERFACES) tmp/generated_definitions.conf
echo "<policy>" > $@
grep -h -E "^##[[:space:]]" $^ | sed -e 's/^##[[:space:]]//g' >> $@
echo "</policy>" >> $@
clean:
rm -fR tmp
rm -f policy.xml
rm -f policy.conf
rm -f policy.$(PV)
rm -f $(FC)