[hackers] [dmenu][RFC][PATCH 3/4] Add updhist to the Makefile

From: Silvan Jegen <s.jegen_AT_gmail.com>
Date: Fri, 27 Nov 2015 19:38:31 +0100

---
 Makefile | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/Makefile b/Makefile
index a7cd04f..0071db0 100644
--- a/Makefile
+++ b/Makefile
_AT_@ -3,10 +3,10 @@
 
 include config.mk
 
-SRC = drw.c dmenu.c stest.c util.c
+SRC = drw.c dmenu.c stest.c util.c updhist.c
 OBJ = ${SRC:.c=.o}
 
-all: options dmenu stest
+all: options dmenu stest updhist
 
 options:
 	_AT_echo dmenu build options:
_AT_@ -32,9 +32,13 @@ stest: stest.o
 	_AT_echo CC -o $@
 	_AT_${CC} -o $@ stest.o ${LDFLAGS}
 
+updhist: updhist.o
+	_AT_echo CC -o $@
+	_AT_${CC} -o $@ updhist.o util.o
+
 clean:
 	_AT_echo cleaning
-	_AT_rm -f dmenu stest ${OBJ} dmenu-${VERSION}.tar.gz
+	_AT_rm -f dmenu stest updhist ${OBJ} dmenu-${VERSION}.tar.gz
 
 dist: clean
 	_AT_echo creating dist tarball
_AT_@ -49,7 +53,7 @@ dist: clean
 install: all
 	_AT_echo installing executables to ${DESTDIR}${PREFIX}/bin
 	_AT_mkdir -p ${DESTDIR}${PREFIX}/bin
-	_AT_cp -f dmenu dmenu_path dmenu_run stest ${DESTDIR}${PREFIX}/bin
+	_AT_cp -f dmenu dmenu_path dmenu_run updhist stest ${DESTDIR}${PREFIX}/bin
 	_AT_chmod 755 ${DESTDIR}${PREFIX}/bin/dmenu
 	_AT_chmod 755 ${DESTDIR}${PREFIX}/bin/dmenu_path
 	_AT_chmod 755 ${DESTDIR}${PREFIX}/bin/dmenu_run
-- 
2.6.2
Received on Fri Nov 27 2015 - 19:38:31 CET

This archive was generated by hypermail 2.3.0 : Fri Nov 27 2015 - 19:48:19 CET