adjust makefile to node_modules in repo
This commit is contained in:
parent
abd94a7f5a
commit
02fa518542
17
Makefile
17
Makefile
@ -6,7 +6,7 @@ gulp = node_modules/gulp/bin/gulp.js
|
|||||||
tsc = node_modules/typescript/bin/tsc
|
tsc = node_modules/typescript/bin/tsc
|
||||||
po2json = node_modules/po2json/bin/po2json
|
po2json = node_modules/po2json/bin/po2json
|
||||||
|
|
||||||
.PHONY: node_modules pogen i18n/strings.js
|
.PHONY: pogen i18n/strings.js
|
||||||
|
|
||||||
package-stable: tsc i18n
|
package-stable: tsc i18n
|
||||||
$(gulp) package-stable
|
$(gulp) package-stable
|
||||||
@ -14,18 +14,18 @@ package-stable: tsc i18n
|
|||||||
package-unstable: tsc i18n
|
package-unstable: tsc i18n
|
||||||
$(gulp) package-unstable
|
$(gulp) package-unstable
|
||||||
|
|
||||||
tsc: tsconfig.json node_modules
|
tsc: tsconfig.json
|
||||||
$(tsc)
|
$(tsc)
|
||||||
|
|
||||||
tsconfig.json: gulpfile.js node_modules
|
tsconfig.json: gulpfile.js
|
||||||
$(gulp) tsconfig
|
$(gulp) tsconfig
|
||||||
|
|
||||||
i18n: pogen msgmerge i18n/strings.js
|
i18n: pogen msgmerge i18n/strings.js
|
||||||
|
|
||||||
pogen/pogen.js: pogen/pogen.ts pogen/tsconfig.json node_modules
|
pogen/pogen.js: pogen/pogen.ts pogen/tsconfig.json
|
||||||
cd pogen; ../$(tsc)
|
cd pogen; ../$(tsc)
|
||||||
|
|
||||||
pogen: $(ts) pogen/pogen.js node_modules
|
pogen: $(ts) pogen/pogen.js
|
||||||
find $(src) \( -name '*.ts' -or -name '*.tsx' \) ! -name '*.d.ts' \
|
find $(src) \( -name '*.ts' -or -name '*.tsx' \) ! -name '*.d.ts' \
|
||||||
| xargs node pogen/pogen.js \
|
| xargs node pogen/pogen.js \
|
||||||
| msguniq \
|
| msguniq \
|
||||||
@ -38,13 +38,13 @@ msgmerge:
|
|||||||
msgmerge -o $$pofile $$pofile i18n/$(poname).pot; \
|
msgmerge -o $$pofile $$pofile i18n/$(poname).pot; \
|
||||||
done; \
|
done; \
|
||||||
|
|
||||||
dist: node_modules
|
dist:
|
||||||
$(gulp) srcdist
|
$(gulp) srcdist
|
||||||
|
|
||||||
appdist:
|
appdist:
|
||||||
$(gulp) appdist
|
$(gulp) appdist
|
||||||
|
|
||||||
i18n/strings.js: # $(ts) node_modules
|
i18n/strings.js: # $(ts)
|
||||||
cp i18n/strings-prelude.js i18n/strings.js
|
cp i18n/strings-prelude.js i18n/strings.js
|
||||||
for pofile in i18n/*.po; do \
|
for pofile in i18n/*.po; do \
|
||||||
b=`basename $$pofile`; \
|
b=`basename $$pofile`; \
|
||||||
@ -53,6 +53,3 @@ i18n/strings.js: # $(ts) node_modules
|
|||||||
(echo -n "i18n.strings['$$lang'] = "; cat $$pofile.json; echo ';') >> $@; \
|
(echo -n "i18n.strings['$$lang'] = "; cat $$pofile.json; echo ';') >> $@; \
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
node_modules:
|
|
||||||
npm install .
|
|
||||||
|
Loading…
Reference in New Issue
Block a user