aboutsummaryrefslogtreecommitdiff
path: root/mk/gitignore.mk
blob: 09139b0eb77c64e955e3b1a0ce6b2907317660aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# rules to make .gitignore files
# Copyright 2008 Roy Marples <roy@marples.name>

IGNOREFILES+=	${CLEANFILES}

.PHONY:		.gitignore

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

gitignore: .gitignore