aboutsummaryrefslogtreecommitdiff
path: root/mk/gitignore.mk
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-03-03 13:14:54 +0000
committerRoy Marples <roy@marples.name>2008-03-03 13:14:54 +0000
commitf35c879bb8b703bd15805b19c55018bd9e9a4e6a (patch)
treeb78306fe127acfd5187b6e81e13893323f7c7a77 /mk/gitignore.mk
parent7a8e9d4ddbe121bf2cafb095e9ecf262bc074133 (diff)
Ignore fixes.
Diffstat (limited to 'mk/gitignore.mk')
-rw-r--r--mk/gitignore.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/mk/gitignore.mk b/mk/gitignore.mk
index 34d3539e..fca262be 100644
--- a/mk/gitignore.mk
+++ b/mk/gitignore.mk
@@ -3,8 +3,11 @@
IGNOREFILES+= ${CLEANFILES}
+.PHONY: .gitignore
+
.gitignore:
- for obj in ${IGNOREFILES}; do \
+ @if test -n "${IGNOREFILES}"; then echo "Ignoring ${IGNOREFILES}"; fi
+ @for obj in ${IGNOREFILES}; do \
if ! test -r .gitignore; then \
echo "$${obj}" > .gitignore || exit $$?; \
elif ! grep -q "^$${obj}$$" .gitignore; then \