aboutsummaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-12-04 12:38:23 +0000
committerRoy Marples <roy@marples.name>2008-12-04 12:38:23 +0000
commit38e6c9ba5c584dfbf20f98eace464595405e1c88 (patch)
tree0647c02c0a527a116dc99946063cdf2f476c9c2a /mk
parent2c98c5326aabddbc9e97b97d93f3c906eabe1189 (diff)
make ignore now configures the sv:ignore property.
Diffstat (limited to 'mk')
-rw-r--r--mk/lib.mk2
-rw-r--r--mk/prog.mk2
-rw-r--r--mk/scripts.mk2
-rw-r--r--mk/subdir.mk2
-rw-r--r--mk/svnignore.mk (renamed from mk/gitignore.mk)11
5 files changed, 8 insertions, 11 deletions
diff --git a/mk/lib.mk b/mk/lib.mk
index e8b2eb7d..c5262383 100644
--- a/mk/lib.mk
+++ b/mk/lib.mk
@@ -64,4 +64,4 @@ extra_depend:
include ${MK}/sys.mk
include ${MK}/os.mk
include ${MK}/depend.mk
-include ${MK}/gitignore.mk
+include ${MK}/svnignore.mk
diff --git a/mk/prog.mk b/mk/prog.mk
index c44b380e..3064e6e0 100644
--- a/mk/prog.mk
+++ b/mk/prog.mk
@@ -38,4 +38,4 @@ extra_depend:
include ${MK}/sys.mk
include ${MK}/os.mk
include ${MK}/depend.mk
-include ${MK}/gitignore.mk
+include ${MK}/svnignore.mk
diff --git a/mk/scripts.mk b/mk/scripts.mk
index f65c1422..663731b8 100644
--- a/mk/scripts.mk
+++ b/mk/scripts.mk
@@ -56,4 +56,4 @@ CLEANFILES+= ${OBJS}
clean:
@if test -n "${CLEANFILES}"; then echo "rm -f ${CLEANFILES}"; rm -f ${CLEANFILES}; fi
-include ${MK}/gitignore.mk
+include ${MK}/svnignore.mk
diff --git a/mk/subdir.mk b/mk/subdir.mk
index 8ebaad4b..cf9628db 100644
--- a/mk/subdir.mk
+++ b/mk/subdir.mk
@@ -27,5 +27,5 @@ check test::
${_SUBDIR}
depend:
${_SUBDIR}
-gitignore:
+ignore:
${_SUBDIR}
diff --git a/mk/gitignore.mk b/mk/svnignore.mk
index 50af3e55..6a979f62 100644
--- a/mk/gitignore.mk
+++ b/mk/svnignore.mk
@@ -1,15 +1,12 @@
-# rules to make .gitignore files
+# 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}
-.PHONY: .gitignore
-
-.gitignore:
+ignore:
@if test -n "${IGNOREFILES}"; then \
echo "Ignoring ${IGNOREFILES}"; \
- echo ${IGNOREFILES} | tr ' ' '\n' > .gitignore; \
+ files="$$(echo ${IGNOREFILES} | tr ' ' '\n')"; \
+ eval svn propset svn:ignore \'"$${files}"\' .; \
fi
-
-gitignore: .gitignore