summaryrefslogtreecommitdiff
path: root/hw/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'hw/Makefile')
-rw-r--r--hw/Makefile18
1 files changed, 16 insertions, 2 deletions
diff --git a/hw/Makefile b/hw/Makefile
index bee82e1..9f7de8a 100644
--- a/hw/Makefile
+++ b/hw/Makefile
@@ -1,7 +1,8 @@
NAME = neo900
SCHTOC = ../../misc/schtoc/schtoc.pl
-.PHONY: pull sync sch sort brd pdf upload upload-pdf upload-tar clean
+.PHONY: pull sync sch sort brd pdf
+.PHONY: upload upload-pdf upload-tar upload-zip clean
pull:
git pull
@@ -37,8 +38,11 @@ PDF_DIR = pub/werner/tmp/ee/pdf
TAR_NAME = neo900-$(DATE)-$(COMMIT).tar.bz2
TAR_DIR = pub/werner/tmp/ee/tar
TAR_EXTRA = kicad-libs/components/gencon.lib
+ZIP_NAME = neo900-$(DATE)-$(COMMIT).zip
+ZIP_DIR = pub/werner/tmp/ee/zip
+ZIP_EXTRA = $(TAR_EXTRA)
-upload: upload-pdf upload-tar
+upload: upload-pdf upload-tar upload-zip
upload-pdf:
eeplot neo900.pro -o $(PDF_NAME)
@@ -58,5 +62,15 @@ upload-tar:
neo900
rm -f $(TAR_NAME)
+upload-zip:
+ zip $(ZIP_NAME) \
+ -nw -X \
+ `git ls-files` \
+ `git submodule --quiet foreach \
+ 'git ls-files | sed "s|^|$$path/|"'` $(ZIP_EXTRA)
+ neo900 $(ZIP_NAME) $(ZIP_DIR)
+ echo "cd $(ZIP_DIR) && ln -sf $(ZIP_NAME) neo900.zip" | neo900
+ rm -f $(ZIP_NAME)
+
clean:
rm -f _tmp