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} dwm: ${OBJ}
${CC} -o $@ ${OBJ} ${LDFLAGS} ${CC} -o $@ ${OBJ} ${LDFLAGS}
submodule:
git submodule update --init
clean: clean:
find . -maxdepth 1 -type f | grep -Pv "^\./\.|Makefile$$" | xargs -r rm find . -maxdepth 1 -type f | grep -Pv "^\./\.|Makefile$$" | xargs -r rm
rm -r tmp patch 2>/dev/null || true rm -r tmp patch 2>/dev/null || true
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 buildroot: submodule
mkdir -p dwm
cp -R config dwm-flexipatch flexipatch-finalizer Makefile dwm
tar -cf dwm.tar dwm
gzip dwm.tar
rm -rf dwm
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
rm -r tmp/Makefile tmp/config.mk patch 2>/dev/null || true rm -r tmp/Makefile tmp/config.mk patch 2>/dev/null || true