]> git.ipfire.org Git - people/stevee/selinux-policy.git/blobdiff - Makefile
Remove module for kudzu.
[people/stevee/selinux-policy.git] / Makefile
index 72a53cc6ac953871d7beb3899201aa2fe040f902..bb485530bc823e217ef3cbd5f26fd7e9f9e8bb19 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -17,6 +17,8 @@
 #
 # Please see build.conf for policy build options.
 #
+#
+VERSION = $(shell git tag 2>/dev/null | tail -n1)
 
 ########################################
 #
@@ -407,7 +409,7 @@ $(moddir)/kernel/corenetwork.if: $(moddir)/kernel/corenetwork.te.in $(moddir)/ke
        @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
@@ -673,3 +675,8 @@ endif
 .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