adjust makefile
This commit is contained in:
parent
4837493c6d
commit
1da188203b
12
Makefile
12
Makefile
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue