Makefile 1.07 KB
Newer Older
1
EXTRACTDIR=-D lib -D themes/default/templates
2 3
POT=themes/default/lib/Lufi/I18N/lufi.pot
XGETTEXT=carton exec local/bin/xgettext.pl -u
Luc Didry's avatar
Luc Didry committed
4 5 6 7 8
CARTON=carton exec
REAL_LUFI=script/application
LUFI=script/lufi

locales:
9 10 11 12 13 14 15 16 17 18
	$(XGETTEXT) $(EXTRACTDIR) -o $(POT) 2>/dev/null

push-locales: locales
	zanata-cli -q -B push --errors --project-version `git branch | grep \* | cut -d ' ' -f2-`

pull-locales:
	zanata-cli -q -B pull --min-doc-percent 50 --project-version `git branch | grep \* | cut -d ' ' -f2-`

stats-locales:
	zanata-cli -q stats --project-version `git branch | grep \* | cut -d ' ' -f2-`
Luc Didry's avatar
Luc Didry committed
19

Luc Didry's avatar
Luc Didry committed
20 21 22
podcheck:
	podchecker lib/Lufi/DB/File.pm lib/Lufi/DB/Slice.pm

Luc Didry's avatar
Luc Didry committed
23 24 25
cover:
	PERL5OPT='-Ilib/' HARNESS_PERL_SWITCHES='-MDevel::Cover' $(CARTON) cover --ignore_re '^local'

Luc Didry's avatar
Luc Didry committed
26
test:
Luc Didry's avatar
Luc Didry committed
27
	@PERL5OPT='-Ilib/' HARNESS_PERL_SWITCHES='-MDevel::Cover' $(CARTON) prove -l -f -o t/test.t
Luc Didry's avatar
Luc Didry committed
28 29 30

clean:
	rm -rf lufi.db files/
Luc Didry's avatar
Luc Didry committed
31

Luc Didry's avatar
Luc Didry committed
32
dev: clean
Luc Didry's avatar
Luc Didry committed
33
	$(CARTON) morbo $(LUFI) --listen http://0.0.0.0:3000 --watch lib/ --watch script/ --watch themes/ --watch lufi.conf
Luc Didry's avatar
Luc Didry committed
34 35 36 37 38

devlog:
	multitail log/development.log

prod:
39
	$(CARTON) hypnotoad -f $(LUFI)