aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2016-06-22 00:40:39 -0400
committerRob Austein <sra@hactrn.net>2016-06-22 00:40:39 -0400
commitd0d8f2b2a61b16496f3dfa7debb995f8e9e55064 (patch)
treef90dbbb4f2162a25525208bcbf87816f23f38665 /Makefile
parent480b0f009c0f56f0d570bb4e76d78781db5c0bda (diff)
Cleanup.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 11 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index d8c159d..2b01f9d 100644
--- a/Makefile
+++ b/Makefile
@@ -10,18 +10,22 @@ bitstream:
elves:
cd sw/stm32; ${MAKE} bootloader hsm
-PACKAGE_FILES = sw/stm32/projects/bootloader/bootloader.bin \
+TARBALL := package.tar.gz
+
+FIRMWARE := sw/stm32/projects/bootloader/bootloader.bin \
sw/stm32/projects/bootloader/bootloader.elf \
- sw/stm32/projects/hsm/hsm.bin \
- sw/stm32/projects/hsm/hsm.elf \
+ sw/stm32/projects/hsm/hsm.bin \
+ sw/stm32/projects/hsm/hsm.elf \
core/platform/alpha/build/alpha_fmc.bit
-package: bitstream elves
- python build-package.py package.tar ${PACKAGE_FILES}
- gzip -9f package.tar
+package: bitstream elves ${TARBALL}
+
+${TARBALL}: ${FIRMWARE}
+ ./build-package.py $(basename $@) $^
+ gzip -9f $(basename $@)
clean:
git clean -dfx
git submodule foreach git clean -dfx
-.PHONY: bitstream elves clean
+.PHONY: bitstream elves package clean