Skip to content

Commit

Permalink
fixup! Update the build system to nfpm
Browse files Browse the repository at this point in the history
  • Loading branch information
Felixoid committed Dec 3, 2024
1 parent 10a5cdf commit b5b2b50
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ build/$(NAME)_linux_x64: $(NAME)/main.go
build/$(NAME)-client_linux_x64: $(NAME)-client/main.go
GOOS=linux GOARCH=amd64 $(GO_BUILD)

packages: $(PKG_FILES) $(SUM_FILES)

# md5 and sha256 sum-files for packages
$(SUM_FILES): COMMAND = $(notdir $@)
Expand All @@ -103,6 +102,7 @@ $(SUM_FILES): $(PKG_FILES)
cd build
$(COMMAND) $(PKG_FILES_NAME) > $(COMMAND)

packages: nfpm $(SUM_FILES)
deb: nfpm
rpm: nfpm
nfpm: build build/pkg
Expand All @@ -112,8 +112,6 @@ nfpm: build build/pkg
$(PKG_FILES): TYPE = $(subst .,,$(suffix $@))
$(PKG_FILES): nfpm.yaml
NAME=$(NAME) VENDOR=$(VENDOR) DESCRIPTION=$(DESCRIPTION) ARCH=$(ARCH) VERSION_STRING=$(VERSION) nfpm package --packager $(TYPE) --target build/

packages: nfpm $(SUM_FILES)
#######
# END #
#######

0 comments on commit b5b2b50

Please sign in to comment.