summaryrefslogtreecommitdiff
path: root/dwm/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'dwm/Makefile')
-rw-r--r--dwm/Makefile22
1 files changed, 7 insertions, 15 deletions
diff --git a/dwm/Makefile b/dwm/Makefile
index bc6161e..a9213e7 100644
--- a/dwm/Makefile
+++ b/dwm/Makefile
@@ -6,13 +6,7 @@ include config.mk
SRC = drw.c dwm.c util.c
OBJ = ${SRC:.c=.o}
-all: options dwm
-
-options:
- @echo dwm build options:
- @echo "CFLAGS = ${CFLAGS}"
- @echo "LDFLAGS = ${LDFLAGS}"
- @echo "CC = ${CC}"
+all: dwm
.c.o:
${CC} -c ${CFLAGS} $<
@@ -26,7 +20,7 @@ dwm: ${OBJ}
${CC} -o $@ ${OBJ} ${LDFLAGS}
clean:
- rm -f dwm ${OBJ} dwm-${VERSION}.tar.gz *.orig *.rej
+ rm -f dwm ${OBJ} dwm-${VERSION}.tar.gz
dist: clean
mkdir -p dwm-${VERSION}
@@ -38,19 +32,17 @@ dist: clean
install: all
mkdir -p ${DESTDIR}${PREFIX}/bin
- install -Dm755 ./dwm ${DESTDIR}${PREFIX}/bin
+ cp -f dwm ${DESTDIR}${PREFIX}/bin
cp -f layoutmenu $(DESTDIR)$(PREFIX)/bin
- chmod 755 $(DESTDIR)$(PREFIX)/bin/layoutmenu
+ chmod 755 ${DESTDIR}${PREFIX}/bin/dwm
mkdir -p ${DESTDIR}${MANPREFIX}/man1
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/dwm
uninstall:
rm -f ${DESTDIR}${PREFIX}/bin/dwm\
+ ${DESTDIR}${MANPREFIX}/man1/dwm.1\
$(DESTDIR)$(PREFIX)/bin/layoutmenu\
- ${DESTDIR}${PREFIX}/share/dwm/thesiah.mom\
- ${DESTDIR}${MANPREFIX}/man1/dwm.1
+ ${DESTDIR}${PREFIX}/share/dwm/thesiah.mom
-.PHONY: all options clean dist install uninstall
+.PHONY: all clean dist install uninstall