Browse Source

no more config.xml first time

master
pvincent 2 years ago
parent
commit
4a052ea707
  1. 16
      Makefile

16
Makefile

@ -7,9 +7,9 @@ ENV?="dev"
install:
#copy config file from template first time only
@if [ ! -f config.xml ]; then \
cp config.xml.dist config.xml; \
fi
# @if [ ! -f config.xml ]; then \
# cp config.xml.dist config.xml; \
# fi
@if [ $(ENV) = "dev" ]; then \
make install_dev; \
@ -20,7 +20,7 @@ install_dev:
#set config file to debug=1
#@sed -e 's?debug=.*?debug="1"?g' --in-place config.xml
#install haxe dependencies in .haxelib
haxelib newrepo
haxelib newrepo
haxelib -always install cagette.hxml
haxelib -always install cagetteJs.hxml
#template tools
@ -47,7 +47,7 @@ compile:
echo "compile CagettePéi core"; \
haxe cagette.hxml; \
fi
#compile SASS files to CSS
css:
@ -64,15 +64,15 @@ frontend:
chown www-data:www-data tmp
#update POT file from source
i18n:
i18n:
haxe potGeneration.hxml
#compile templates in each language, required for production env.
templates:
templates:
mkdir -p lang/master/tmp
haxe cagette.hxml -D i18n_generation
@make LANG=fr ctemplates
msgfmt www/lang/texts_fr.po -o www/lang/texts_fr.mo
msgfmt www/lang/texts_fr.po -o www/lang/texts_fr.mo
chown www-data:www-data -R www
chown www-data:www-data -R lang/fr

Loading…
Cancel
Save