openrc/mk/gitignore.mk

16 lines
350 B
Makefile
Raw Normal View History

2009-04-30 19:35:39 +05:30
# rules to make .gitignore files
2009-05-01 19:41:40 +05:30
# Copyright (c) 2008 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license.
2009-04-30 19:35:39 +05:30
IGNOREFILES+= ${CLEANFILES}
.PHONY: .gitignore
.gitignore:
@if test -n "${IGNOREFILES}"; then \
echo "Ignoring ${IGNOREFILES}"; \
echo ${IGNOREFILES} | tr ' ' '\n' > .gitignore; \
fi
ignore: .gitignore