Fix ignore files some more.
This commit is contained in:
@@ -6,13 +6,9 @@ IGNOREFILES+= ${CLEANFILES}
|
||||
.PHONY: .gitignore
|
||||
|
||||
.gitignore:
|
||||
@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 \
|
||||
echo "$${obj}" >> .gitignore || exit $$?; \
|
||||
fi; \
|
||||
done
|
||||
@if test -n "${IGNOREFILES}"; then \
|
||||
echo "Ignoring ${IGNOREFILES}"; \
|
||||
echo ${IGNOREFILES} | tr ' ' '\n' > .gitignore; \
|
||||
fi
|
||||
|
||||
gitignore: .gitignore
|
||||
|
||||
Reference in New Issue
Block a user