aboutsummaryrefslogtreecommitdiff
path: root/mk/gitignore.mk
diff options
context:
space:
mode:
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 \