aboutsummaryrefslogtreecommitdiff
path: root/mk/svnignore.mk
diff options
context:
space:
mode:
Diffstat (limited to 'mk/svnignore.mk')
-rw-r--r--mk/svnignore.mk12
1 files changed, 12 insertions, 0 deletions
diff --git a/mk/svnignore.mk b/mk/svnignore.mk
new file mode 100644
index 00000000..6a979f62
--- /dev/null
+++ b/mk/svnignore.mk
@@ -0,0 +1,12 @@
+# rules to make svn ignore files
+# Copyright 2008 Roy Marples <roy@marples.name>
+# All rights reserved. Released under the 2-clause BSD license.
+
+IGNOREFILES+= ${CLEANFILES}
+
+ignore:
+ @if test -n "${IGNOREFILES}"; then \
+ echo "Ignoring ${IGNOREFILES}"; \
+ files="$$(echo ${IGNOREFILES} | tr ' ' '\n')"; \
+ eval svn propset svn:ignore \'"$${files}"\' .; \
+ fi