diff options
author | Roy Marples <roy@marples.name> | 2009-04-30 15:05:39 +0100 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2009-04-30 15:05:39 +0100 |
commit | b70501ef452e896b1164290e3575ef7d89926f07 (patch) | |
tree | 098b2b6faabb1b7675d50a7a02ab2d245abea3bc /mk/gitignore.mk | |
parent | e0f0fc8046bed6d21a92d0ef6f708d3ce5ef5c1c (diff) |
Go back to git
Diffstat (limited to 'mk/gitignore.mk')
-rw-r--r-- | mk/gitignore.mk | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/mk/gitignore.mk b/mk/gitignore.mk new file mode 100644 index 00000000..ed274497 --- /dev/null +++ b/mk/gitignore.mk @@ -0,0 +1,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 + +ignore: .gitignore |