Skip to content

Commit

Permalink
tentative i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
trecouvr committed Nov 8, 2011
1 parent cdb88ba commit a151261
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions Makefile
Expand Up @@ -2,8 +2,13 @@
# @author Matthieu Guffroy

OPA=opa

OPX_DIR=_build_o
OPT=--opx-dir $(OPX_DIR)
DB_DIR=db
#TRANSLATIONS_DIR=translations

OPT-DB=--db-local $(DB_DIR)/db --db-force-upgrade
OPT=--opx-dir $(OPX_DIR) #--i18n-dir $(TRANSLATIONS_DIR)
OPT-RELEASE=$(OPT) --compile-release
DEBUG=--debug-editable-css --verbose 100
FILES=$(shell find src -name '*.opa')
Expand All @@ -15,19 +20,15 @@ all: $(FILES)
all-release: $(FILES)
$(OPA) $^ -o main.exe $(OPT-RELEASE)


translation: $(FILES)
$(OPA) --i18n-template-opa $^ --i18n-dir $(TRANSLATIONS_DIR)

run:
./$(EXE) --db-local db/db
./$(EXE) $(OPT-DB)

run-debug:
./$(EXE) --db-local db/db $(DEBUG)

new-db: all
./$(EXE) --db-local db/db --db-force-upgrade
./$(EXE) $(OPT-DB) $(DEBUG)

new-db-debug: all
./$(EXE) --db-local db/db --db-force-upgrade $(DEBUG)

clean-db:
rm -rf db/*
Expand Down

0 comments on commit a151261

Please sign in to comment.