Skip to content

Commit

Permalink
config.mk, Makefile: add dist target to create a tarball of a git repo
Browse files Browse the repository at this point in the history
  • Loading branch information
sighook committed Apr 21, 2023
1 parent 35ea31d commit 106bac6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,9 @@ uninstall:

clean:
rm -f rejmerge rejmerge.8 rejmerge.conf.5
rm -f ${DIST}.tar.gz

.PHONY: all install uninstall clean
dist: clean
git archive --format=tar.gz -o ${DIST}.tar.gz --prefix=${DIST}/ HEAD

.PHONY: all install uninstall clean dist
1 change: 1 addition & 0 deletions config.mk
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# project metadata
NAME = rejmerge
VERSION = 5.41
DIST = ${NAME}-${VERSION}

# paths
PREFIX = /usr
Expand Down

0 comments on commit 106bac6

Please sign in to comment.