adjust makefile

This commit is contained in:
Luca Bilke 2024-05-22 16:36:04 +02:00
parent 4837493c6d
commit 1da188203b
No known key found for this signature in database
GPG Key ID: B753481DA0B6FA47
1 changed files with 4 additions and 8 deletions

View File

@ -25,20 +25,16 @@ ${OBJ}: config.h config.mk
dwm: ${OBJ}
${CC} -o $@ ${OBJ} ${LDFLAGS}
submodule:
git submodule update --init
clean:
find . -maxdepth 1 -type f | grep -Pv "^\./\.|Makefile$$" | xargs -r rm
rm -r tmp patch 2>/dev/null || true
git -C dwm-flexipatch reset --hard HEAD
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: submodule
cp config/patches.h dwm-flexipatch/patches.h
flexipatch-finalizer/flexipatch-finalizer.sh -r -d dwm-flexipatch -o tmp
rm -r tmp/Makefile tmp/config.mk patch 2>/dev/null || true