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}/os.mk
include ${MK}/subdir.mk include ${MK}/subdir.mk
include ${MK}/dist.mk include ${MK}/dist.mk
include ${MK}/gitignore.mk
_installafter: _installafter:
${INSTALL} -d ${DESTDIR}/${PREFIX}/${RC_LIB}/init.d ${INSTALL} -d ${DESTDIR}/${PREFIX}/${RC_LIB}/init.d

View File

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

View File

@ -64,4 +64,4 @@ extra_depend:
include ${MK}/sys.mk include ${MK}/sys.mk
include ${MK}/os.mk include ${MK}/os.mk
include ${MK}/depend.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}/sys.mk
include ${MK}/os.mk include ${MK}/os.mk
include ${MK}/depend.mk include ${MK}/depend.mk
include ${MK}/gitignore.mk include ${MK}/svnignore.mk

View File

@ -56,4 +56,4 @@ CLEANFILES+= ${OBJS}
clean: clean:
@if test -n "${CLEANFILES}"; then echo "rm -f ${CLEANFILES}"; rm -f ${CLEANFILES}; fi @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} ${_SUBDIR}
depend: depend:
${_SUBDIR} ${_SUBDIR}
gitignore: ignore:
${_SUBDIR} ${_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> # Copyright 2008 Roy Marples <roy@marples.name>
# All rights reserved. Released under the 2-clause BSD license. # All rights reserved. Released under the 2-clause BSD license.
IGNOREFILES+= ${CLEANFILES} IGNOREFILES+= ${CLEANFILES}
.PHONY: .gitignore ignore:
.gitignore:
@if test -n "${IGNOREFILES}"; then \ @if test -n "${IGNOREFILES}"; then \
echo "Ignoring ${IGNOREFILES}"; \ echo "Ignoring ${IGNOREFILES}"; \
echo ${IGNOREFILES} | tr ' ' '\n' > .gitignore; \ files="$$(echo ${IGNOREFILES} | tr ' ' '\n')"; \
eval svn propset svn:ignore \'"$${files}"\' .; \
fi fi
gitignore: .gitignore

View File

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

View File

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