From ecc0d5154c76ec07ec0da8ea3d33c14b4cef44b4 Mon Sep 17 00:00:00 2001 From: rurban Date: Sun, 7 Aug 2005 08:54:33 +0000 Subject: [PATCH] absolute etags path, prevent from printing dir errors git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@4764 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- Makefile | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 7df5c67f7..c8a3071a2 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,14 @@ -# $Id: Makefile,v 1.7 2004-11-03 16:47:53 rurban Exp $ +# $Id: Makefile,v 1.8 2005-08-07 08:54:33 rurban Exp $ # user-definable settings: # for mysqladmin DBADMIN_USER=root DBADMIN_PASS=secret +# etags (GNU Emacs 21.5.x) +#ETAGS_STDIN = /usr/bin/etags -L - +# etags (GNU Emacs 21.4.15) +ETAGS_STDIN = /usr/bin/etags - + DB_SQLITE_DBFILE = /tmp/phpwiki-sqlite.db # **************************************************************************** @@ -45,15 +50,15 @@ PHP_SRC := $(wildcard *.php ./lib/*.php ./lib/WikiDB/*.php ./lib/plugin/*.php) all: TAGS TAGS: $(PHP_SRC) -# etags $(PHP_SRC) if [ -f $@ ]; then /usr/bin/mv -f $@ $@~; fi - /usr/bin/find . \( -type d -regex '\(^\./lib/pear\)\|\(^\./lib/WikiDB/adodb\)\|\(^\./lib/nusoap\)\|\(^\./lib/fpdf\)\|\(^\./locale/.*/LC_MESSAGES\)' \) -prune -o -type f -name \*.php | etags - +# etags $(PHP_SRC) + /usr/bin/find . \( -type d -regex '\(^\./lib/pear\)\|\(^\./lib/WikiDB/adodb\)\|\(^\./lib/nusoap\)\|\(^\./lib/fpdf\)\|\(^\./locale/.*/LC_MESSAGES\)' \) -prune -o -type f -name \*.php | grep \*.php | $(ETAGS_STDIN) TAGS.full: $(PHP_SRC) if [ -f $@ ]; then /usr/bin/mv -f $@ $@~; fi -# better etags -# /usr/bin/find . -name \*.php -o -name \*.tmpl | etags -L - --langmap="HTML:.tmpl" -f $@ - /usr/bin/find . -type f -name \*.php -o -name \*.tmpl | etags - -o $@ + /usr/bin/find . -name \*.php -o -name \*.tmpl | $(ETAGS_STDIN) --langmap="HTML:.tmpl" -f $@ +# older etags needed this: +# /usr/bin/find . -type f -name \*.php -o -name \*.tmpl | etags - -o $@ locale: cd locale -- 2.45.0