Skip to content

Commit

Permalink
chore: fix signature generation in Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
hbarcelos committed Mar 17, 2022
1 parent 92b82f1 commit 83c3520
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,33 +11,34 @@ MAN_FILES=`find $(MAN_DIRS) -type f 2>/dev/null`
PKG_DIR=pkg
PKG_NAME=$(NAME)-$(VERSION)
PKG=$(PKG_DIR)/$(PKG_NAME).tar.gz
SIG=$(PKG_DIR)/$(PKG_NAME).asc
SIG=$(PKG_DIR)/$(PKG_NAME).tar.gz.asc

PREFIX?=$(HOME)/.local
INSTALL_DOC_DIR=$(PREFIX)/share/doc/$(PKG_NAME)
INSTALL_MAN_DIR=$(PREFIX)/share/man

all: clean man $(PKG) $(SIG)

build: clean $(PKG)

pkg:
mkdir -p $(PKG_DIR)

$(PKG): pkg
git archive --output=$(PKG) --prefix=$(PKG_NAME)/ HEAD

build: $(PKG)

man:
for dir in $(MAN_DIRS); do mkdir -p $$dir; done
for file in $(INSTALL_FILES); do help2man --no-info --no-discard-stderr $$file | nroff -man > $(MAN_DIRS)/$$(basename $$file).1; done

$(SIG): $(PKG)
gpg --sign --detach-sign --armor $(PKG)
gpg --sign --detach-sign --armor -o $(SIG) $(PKG)

sign: $(SIG)

clean:
rm -f $(PKG) $(SIG)

all: man $(PKG) $(SIG)
rm -rf man/*

test:

Expand Down

0 comments on commit 83c3520

Please sign in to comment.