summaryrefslogtreecommitdiff
path: root/dwm/Makefile
diff options
context:
space:
mode:
authorSoominIm <111330163+SoominIm@users.noreply.github.com>2024-04-09 18:58:13 -0400
committerSoominIm <111330163+SoominIm@users.noreply.github.com>2024-04-09 18:58:13 -0400
commita1009ce70a396732ba15b15d5c959269b5d557a2 (patch)
tree775c532d9dca2c7c2c13dc2b31192e01748aba9f /dwm/Makefile
parentcd33c8142bf63e48e87c19be15d307978b5f0236 (diff)
init
Diffstat (limited to 'dwm/Makefile')
-rw-r--r--dwm/Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/dwm/Makefile b/dwm/Makefile
index 7e4b1f5..924ef09 100644
--- a/dwm/Makefile
+++ b/dwm/Makefile
@@ -19,6 +19,9 @@ options:
${OBJ}: config.h config.mk
+config.h:
+ cp config.def.h $@
+
dwm: ${OBJ}
${CC} -o $@ ${OBJ} ${LDFLAGS}
@@ -27,8 +30,8 @@ clean:
dist: clean
mkdir -p dwm-${VERSION}
- cp -R LICENSE Makefile README config.mk\
- dwm.1 drw.h util.h ${SRC} transient.c dwm-${VERSION}
+ cp -R LICENSE Makefile README config.def.h config.mk\
+ dwm.1 drw.h util.h ${SRC} dwm.png transient.c dwm-${VERSION}
tar -cf dwm-${VERSION}.tar dwm-${VERSION}
gzip dwm-${VERSION}.tar
rm -rf dwm-${VERSION}
@@ -40,11 +43,11 @@ install: all
sed "s/VERSION/${VERSION}/g" < dwm.1 > ${DESTDIR}${MANPREFIX}/man1/dwm.1
chmod 644 ${DESTDIR}${MANPREFIX}/man1/dwm.1
mkdir -p ${DESTDIR}${PREFIX}/share/dwm
- install -Dm644 ./thesiah.mom ${DESTDIR}${PREFIX}/share/man/thesiah
+ install -Dm644 ./thesiah.mom ${DESTDIR}${PREFIX}/share/dwm
uninstall:
rm -f ${DESTDIR}${PREFIX}/bin/dwm\
- ${DESTDIR}${PREFIX}/share/man/thesiah/thesiah.mom\
+ ${DESTDIR}${PREFIX}/share/dwm/thesiah.mom\
${DESTDIR}${MANPREFIX}/man1/dwm.1
.PHONY: all options clean dist install uninstall