aboutsummaryrefslogtreecommitdiff
path: root/mk/gitignore.mk
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2009-04-30 15:05:39 +0100
committerRoy Marples <roy@marples.name>2009-04-30 15:05:39 +0100
commitb70501ef452e896b1164290e3575ef7d89926f07 (patch)
tree098b2b6faabb1b7675d50a7a02ab2d245abea3bc /mk/gitignore.mk
parente0f0fc8046bed6d21a92d0ef6f708d3ce5ef5c1c (diff)
Go back to git
Diffstat (limited to 'mk/gitignore.mk')
-rw-r--r--mk/gitignore.mk15
1 files changed, 15 insertions, 0 deletions
diff --git a/mk/gitignore.mk b/mk/gitignore.mk
new file mode 100644
index 00000000..ed274497
--- /dev/null
+++ b/mk/gitignore.mk
@@ -0,0 +1,15 @@
+# rules to make .gitignore files
+# Copyright 2008 Roy Marples <roy@marples.name>
+# All rights reserved. Released under the 2-clause BSD license.
+
+IGNOREFILES+= ${CLEANFILES}
+
+.PHONY: .gitignore
+
+.gitignore:
+ @if test -n "${IGNOREFILES}"; then \
+ echo "Ignoring ${IGNOREFILES}"; \
+ echo ${IGNOREFILES} | tr ' ' '\n' > .gitignore; \
+ fi
+
+ignore: .gitignore