hydra-werther/Makefile
William Petit b940aae071
All checks were successful
Cadoles/hydra-werther/pipeline/head This commit looks good
chore: add nfpm based packing recipe
2022-11-03 15:30:40 -06:00

23 lines
399 B
Makefile

PACKAGE_VERSION ?= $(shell git describe --always | rev | cut -d '/' -f 1 | rev)
NFPM_PACKAGER ?= deb
build: clean generate
CGO_ENABLED=0 misc/script/build
generate:
go generate ./...
clean:
rm -rf bin
package: dist
PACKAGE_VERSION=$(PACKAGE_VERSION) \
nfpm package \
--config misc/packaging/nfpm.yml \
--target ./dist \
--packager $(NFPM_PACKAGER)
dist:
mkdir -p dist
.PHONY: build