add dist to makefile

This commit is contained in:
Luca Bilke 2024-05-22 15:48:50 +02:00
parent 003db33212
commit d4c90374ff
No known key found for this signature in database
GPG Key ID: B753481DA0B6FA47
1 changed files with 8 additions and 3 deletions

View File

@ -1,6 +1,6 @@
# dwm - dynamic window manager # dwm - dynamic window manager
# See LICENSE file for copyright and license details. # See LICENSE file for copyright and license details.
.PHONY: all clean install uninstall .PHONY: all submodule clean dist install uninstall
include config.mk include config.mk
@ -22,8 +22,6 @@ ${SRC}: buildroot
${OBJ}: config.h config.mk ${OBJ}: config.h config.mk
dwm: ${OBJ} dwm: ${OBJ}
${CC} -o $@ ${OBJ} ${LDFLAGS} ${CC} -o $@ ${OBJ} ${LDFLAGS}
@ -33,6 +31,13 @@ clean:
git -C dwm-flexipatch reset --hard HEAD git -C dwm-flexipatch reset --hard HEAD
git -C dwm-flexipatch clean -ffdx git -C dwm-flexipatch clean -ffdx
dist: clean
mkdir -p dwm
cp -R config dwm-flexipatch flexipatch-finalizer Makefile dwm
tar -cf dwm.tar dwm
gzip dwm.tar
rm -rf dwm
buildroot: buildroot:
cp config/patches.h dwm-flexipatch/patches.h cp config/patches.h dwm-flexipatch/patches.h
flexipatch-finalizer/flexipatch-finalizer.sh -r -d dwm-flexipatch -o tmp flexipatch-finalizer/flexipatch-finalizer.sh -r -d dwm-flexipatch -o tmp