---
 Makefile | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile
index a7cd04f..0071db0 100644
--- a/Makefile
+++ b/Makefile
@@ -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:
        @echo dmenu build options:
@@ -32,9 +32,13 @@ stest: stest.o
        @echo CC -o $@
        @${CC} -o $@ stest.o ${LDFLAGS}
 
+updhist: updhist.o
+       @echo CC -o $@
+       @${CC} -o $@ updhist.o util.o
+
 clean:
        @echo cleaning
-       @rm -f dmenu stest ${OBJ} dmenu-${VERSION}.tar.gz
+       @rm -f dmenu stest updhist ${OBJ} dmenu-${VERSION}.tar.gz
 
 dist: clean
        @echo creating dist tarball
@@ -49,7 +53,7 @@ dist: clean
 install: all
        @echo installing executables to ${DESTDIR}${PREFIX}/bin
        @mkdir -p ${DESTDIR}${PREFIX}/bin
-       @cp -f dmenu dmenu_path dmenu_run stest ${DESTDIR}${PREFIX}/bin
+       @cp -f dmenu dmenu_path dmenu_run updhist stest ${DESTDIR}${PREFIX}/bin
        @chmod 755 ${DESTDIR}${PREFIX}/bin/dmenu
        @chmod 755 ${DESTDIR}${PREFIX}/bin/dmenu_path
        @chmod 755 ${DESTDIR}${PREFIX}/bin/dmenu_run
-- 
2.6.2


Reply via email to