diff options
author | Rob Austein <sra@hactrn.net> | 2016-06-22 00:40:39 -0400 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2016-06-22 00:40:39 -0400 |
commit | d0d8f2b2a61b16496f3dfa7debb995f8e9e55064 (patch) | |
tree | f90dbbb4f2162a25525208bcbf87816f23f38665 /Makefile | |
parent | 480b0f009c0f56f0d570bb4e76d78781db5c0bda (diff) |
Cleanup.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 18 |
1 files changed, 11 insertions, 7 deletions
@@ -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 |