diff --git a/Makefile.common b/Makefile.common index bf7304e..36c9d9c 100644 --- a/Makefile.common +++ b/Makefile.common @@ -238,8 +238,11 @@ endif .PHONY: common-build common-build: promu - @echo ">> building binaries" - GO111MODULE=$(GO111MODULE) $(PROMU) build --prefix $(PREFIX) $(PROMU_BINARIES) + @bash -c "trap 'echo \">> restoring assets\"; scripts/compress_assets.sh -d;' EXIT; \ + echo '>> compressing assets'; \ + scripts/compress_assets.sh; \ + echo '>> building binaries'; \ + GO111MODULE=$(GO111MODULE) $(PROMU) build --prefix $(PREFIX) $(PROMU_BINARIES)" .PHONY: common-tarball common-tarball: promu