summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 00000000..0803e30a
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,17 @@
+EXTENSIONS:=embroider embroider_params embroider_simulate embroider_update
+
+# This gets the branch name or the name of the tag
+VERSION:=$(TRAVIS_TAG)
+OS:=$(shell uname)
+ARCH:=$(shell uname -m)
+
+dist: distclean
+ bin/build-dist $(EXTENSIONS)
+ cp *.inx dist
+ cd dist; tar zcf ../inkstitch-$(VERSION)-$(OS)-$(ARCH).tar.gz *
+
+ # This is only here for debugging the build.
+ tar zcf build.tar.gz build
+
+distclean:
+ rm -rf build dist *.spec *.tar.gz