openrc/mk/gitignore.mk

16 lines
361 B
Makefile
Raw Normal View History

2008-03-03 13:04:08 +00:00
# rules to make .gitignore files
# Copyright 2008 Roy Marples <roy@marples.name>
# All rights reserved. Released under the 2-clause BSD license.
2008-03-03 13:04:08 +00:00
IGNOREFILES+= ${CLEANFILES}
2008-03-03 13:14:54 +00:00
.PHONY: .gitignore
2008-03-03 13:04:08 +00:00
.gitignore:
2008-03-03 13:31:25 +00:00
@if test -n "${IGNOREFILES}"; then \
echo "Ignoring ${IGNOREFILES}"; \
echo ${IGNOREFILES} | tr ' ' '\n' > .gitignore; \
fi
2008-03-03 13:04:08 +00:00
gitignore: .gitignore