From d0d8f2b2a61b16496f3dfa7debb995f8e9e55064 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Wed, 22 Jun 2016 00:40:39 -0400 Subject: Cleanup. --- Makefile | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3