#
# Please see build.conf for policy build options.
#
+#
+VERSION = $(shell git tag 2>/dev/null | tail -n1)
########################################
#
@echo "#" >> $@
$(verbose) cat $@.in >> $@
$(verbose) $(GREP) "^[[:blank:]]*network_(interface|node|port|packet)(_controlled)?\(.*\)" $< \
- | $(M4) -D self_contained_policy $(M4PARAM) $@.m4 - \
+ | $(M4) -D self_contained_policy $(M4PARAM) $(m4divert) $@.m4 $(m4undivert) - \
| $(SED) -e 's/dollarsone/\$$1/g' -e 's/dollarszero/\$$0/g' >> $@
$(moddir)/kernel/corenetwork.te: $(moddir)/kernel/corenetwork.te.m4 $(moddir)/kernel/corenetwork.te.in
.PHONY: install-src install-appconfig install-headers generate xml conf html bare tags
.SUFFIXES:
.SUFFIXES: .c
+
+.PHONY: dist
+dist:
+ git archive --format=tar --prefix=selinux-policy-$(VERSION)/ HEAD | \
+ gzip -9 > selinux-policy-$(VERSION).tar.gz