1 # gnu make (also with cygwin) version
2 PHP_SRC := $(wildcard *.php ./lib/*.php ./lib/WikiDB/*.php ./lib/plugin/*.php)
8 if [ -f TAGS ]; then /usr/bin/mv -f TAGS TAGS~; fi
9 /usr/bin/find . . \( -type d -regex '\(^\./lib/pear\)\|\(^\./lib/WikiDB/adodb\)\|\(^\./lib/nusoap\)\|\(^\./locale/.*/LC_MESSAGES\)' \) -prune -o -name \*.php -exec etags -a '{}' \;
12 make -f locale/Makefile
14 # TODO: get db params from config/config.ini
21 DB_OPTS=-u$(DB_ADMINUSER) -p$(DB_ADMINPASS)
24 mysqladmin $(DB_OPTS) create $(DB_DB)
25 mysql $(DB_OPTS) -e "GRANT select,insert,update,delete,lock tables ON $(DB_DB).* \
26 TO $(DB_USER)@localhost IDENTIFIED BY '$(DB_PASS)';"
27 mysql $(DB_OPTS) $(DB_DB) <schemas/mysql.SQL
33 createuser -D -A -P $(DB_USER)
35 createuser -D -A $(DB_USER)
37 psql $(DB_DB) -f schemas/schema.psql