make ignore now configures the sv:ignore property.

This commit is contained in:
Roy Marples 2008-12-04 12:38:23 +00:00
parent 2c98c5326a
commit 38e6c9ba5c
9 changed files with 11 additions and 15 deletions

View File

@ -17,7 +17,6 @@ include ${MK}/sys.mk
include ${MK}/os.mk
include ${MK}/subdir.mk
include ${MK}/dist.mk
include ${MK}/gitignore.mk
_installafter:
${INSTALL} -d ${DESTDIR}/${PREFIX}/${RC_LIB}/init.d

View File

@ -18,7 +18,7 @@ MAKE_LINKS= suffix=$${man\#*.}; \
MK= ../mk
include ${MK}/sys.mk
include ${MK}/gitignore.mk
include ${MK}/svnignore.mk
all:

View File

@ -64,4 +64,4 @@ extra_depend:
include ${MK}/sys.mk
include ${MK}/os.mk
include ${MK}/depend.mk
include ${MK}/gitignore.mk
include ${MK}/svnignore.mk

View File

@ -38,4 +38,4 @@ extra_depend:
include ${MK}/sys.mk
include ${MK}/os.mk
include ${MK}/depend.mk
include ${MK}/gitignore.mk
include ${MK}/svnignore.mk

View File

@ -56,4 +56,4 @@ CLEANFILES+= ${OBJS}
clean:
@if test -n "${CLEANFILES}"; then echo "rm -f ${CLEANFILES}"; rm -f ${CLEANFILES}; fi
include ${MK}/gitignore.mk
include ${MK}/svnignore.mk

View File

@ -27,5 +27,5 @@ check test::
${_SUBDIR}
depend:
${_SUBDIR}
gitignore:
ignore:
${_SUBDIR}

View File

@ -1,15 +1,12 @@
# rules to make .gitignore files
# 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}
.PHONY: .gitignore
.gitignore:
ignore:
@if test -n "${IGNOREFILES}"; then \
echo "Ignoring ${IGNOREFILES}"; \
echo ${IGNOREFILES} | tr ' ' '\n' > .gitignore; \
files="$$(echo ${IGNOREFILES} | tr ' ' '\n')"; \
eval svn propset svn:ignore \'"$${files}"\' .; \
fi
gitignore: .gitignore

View File

@ -14,7 +14,7 @@ INITDIR= ../init.d
MK= ../mk
include ${MK}/sys.mk
include ${MK}/os.mk
include ${MK}/gitignore.mk
include ${MK}/svnignore.mk
include Makefile.${OS}
all:

View File

@ -2,7 +2,7 @@ all:
install:
gitignore:
ignore:
check test::
./runtests.sh