[selinux-policy: 363/3172] add install-src target

Daniel J Walsh dwalsh at fedoraproject.org
Thu Oct 7 19:36:14 UTC 2010


commit c592e52e38cbd9411e561fde5dd588b49c7b81bb
Author: Chris PeBenito <cpebenito at tresys.com>
Date:   Wed Jun 15 14:14:20 2005 +0000

    add install-src target

 refpolicy/Makefile |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/refpolicy/Makefile b/refpolicy/Makefile
index f93d9a7..e4a27ff 100644
--- a/refpolicy/Makefile
+++ b/refpolicy/Makefile
@@ -451,6 +451,16 @@ $(APPDIR)/users/root: $(APPCONF)/root_default_contexts
 	@mkdir -p $(APPDIR)/users
 	$(QUIET) install -m 644 $< $@
 
+########################################
+#
+# Install policy sources
+#
+install-src:
+	rm -rf $(SRCPATH)/policy.old
+	-mv $(SRCPATH)/policy $(SRCPATH)/policy.old
+	mkdir -p $(SRCPATH)/policy
+	cp -R . $(SRCPATH)/policy
+
 clean:
 	rm -fR tmp
 	rm -f policy.conf


More information about the scm-commits mailing list