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

IGNOREFILES+=	${CLEANFILES}

ignore:
	@if test -n "${IGNOREFILES}"; then \
		echo "=> Ignoring ${IGNOREFILES}"; \
		files="$$(echo "${IGNOREFILES}" | tr ' ' '\n')"; \
		efiles="$$(svn propget svn:ignore .)"; \
		sfiles="$$(printf "$${files}\n$${efiles}" | sort -u)"; \
		eval svn propset svn:ignore \'"$${sfiles}"\' .; \
	fi