summaryrefslogtreecommitdiff
path: root/mk/gitignore.mk
blob: 50af3e552262d4c45b23590200c74c90e9d601f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# rules to make .gitignore files
# Copyright 2008 Roy Marples <roy@marples.name>
# All rights reserved. Released under the 2-clause BSD license.

IGNOREFILES+=	${CLEANFILES}

.PHONY:		.gitignore

.gitignore:
	@if test -n "${IGNOREFILES}"; then \
		echo "Ignoring ${IGNOREFILES}"; \
		echo ${IGNOREFILES} | tr ' ' '\n' > .gitignore; \
	fi

gitignore: .gitignore