81ce9b2203
Turn off debug by default.
15 lines
322 B
Makefile
15 lines
322 B
Makefile
all: version.py
|
|
|
|
version.py: dummy
|
|
echo __version__ = \'$(shell git describe --always --dirty --long)\' > $@
|
|
|
|
dummy:
|
|
|
|
DB=$(shell cat niche.ini | grep ^db= | cut -d= -f2)
|
|
|
|
import: $(wildcard mofi-*.sql.gz)
|
|
zcat $< \
|
|
| sed -r "s# CHARSET\=latin1# CHARSET\=utf8#g" \
|
|
| sed "s#ENGINE=MyISAM##" \
|
|
| mysql -u root -p $(DB)
|