adjust makefile
This commit is contained in:
parent
4837493c6d
commit
1da188203b
1 changed files with 4 additions and 8 deletions
12
Makefile
12
Makefile
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue