summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLex Neva <github.com@lexneva.name>2019-04-20 21:46:28 -0400
committerLex Neva <github.com@lexneva.name>2019-04-20 21:46:28 -0400
commitd61b99891285ff879cbacdb8e23f9c025efc6a09 (patch)
tree748f0ff73ce0b1a5459f8e2c4f963e87ffe8090e /Makefile
parent09c46e0fb499987899a2e67819099eba2c121487 (diff)
parente717fa140d4d2b46bb4884999b945c9a875ef59d (diff)
Merge remote-tracking branch 'origin/master' into lexelby/electron
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 10 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index d9d05bf6..2171d4f4 100644
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,6 @@ ARCH:=$(shell uname -m)
dist: locales inx
bin/build-dist $(EXTENSIONS)
bin/build-electron
- cp inx/*.inx dist
cp -a images/examples dist/inkstitch
cp -a palettes dist/inkstitch
cp -a symbols dist/inkstitch
@@ -21,11 +20,16 @@ dist: locales inx
else \
cp -a electron/dist/*-unpacked dist/inkstitch/electron; \
fi
- if [ "$$BUILD" = "windows" ]; then \
- cd dist; zip -r ../inkstitch-$(VERSION)-win32.zip *; \
- else \
- cd dist; tar zcf ../inkstitch-$(VERSION)-$(OS)-$(ARCH).tar.gz *; \
- fi
+ for d in inx/*; do \
+ lang=$${d%.*}; \
+ lang=$${lang#*/}; \
+ cp $$d/*.inx dist; \
+ if [ "$$BUILD" = "windows" ]; then \
+ cd dist; zip -r ../inkstitch-$(VERSION)-win32-$$lang.zip *; cd ..; \
+ else \
+ cd dist; tar zcf ../inkstitch-$(VERSION)-$(OS)-$(ARCH)-$$lang.tar.gz *; cd ..; \
+ fi; \
+ done
distclean:
rm -rf build dist inx locales *.spec *.tar.gz *.zip electron/node_modules electron/dist