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 147ca6d commit 144c01b
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 @@ -43,5 +43,9 @@ uninstall:

clean:
rm -f ${BIN8} ${MAN5} ${MAN7} ${MAN8}
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,3 +1,4 @@
# project metadata
NAME = mkinitramfs
VERSION = 0.2.2
DIST = ${NAME}-${VERSION}

0 comments on commit 144c01b

Please sign in to comment.