diff options
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 |