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

Loading…
Cancel
Save