Description: <short summary of the patch>
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 tty-clock (1.0-4) unstable; urgency=low
 .
   * fix more lintian errors
     * update to policy 3.9.2, no change
     * remove template from copyright file
     * just one big patch, we track changes in git
     * we still don't have a manpage though
Author: Antoine Beaupré <anarcat@koumbit.org>

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: http://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: <YYYY-MM-DD>

--- tty-clock-1.0.orig/Makefile
+++ tty-clock-1.0/Makefile
@@ -5,7 +5,8 @@
 SRC = ttyclock.c
 CC = cc
 BIN = tty-clock
-INSTALLPATH = /usr/local/bin/
+PREFIX ?= /usr/local
+INSTALLPATH = ${DESTDIR}${PREFIX}/bin
 CFLAGS = -Wall -g
 LDFLAGS = -lncurses
 
@@ -18,19 +19,19 @@ tty-clock : ${SRC}
 
 install : ${BIN}
 
-	@echo "installing binary file to ${INSTALLPATH}${BIN}"
+	@echo "installing binary file to ${INSTALLPATH}/${BIN}"
 	@cp ${BIN} ${INSTALLPATH}
-	@chmod 755 ${INSTALLPATH}${BIN}
+	@chmod 755 ${INSTALLPATH}/${BIN}
 	@echo "installed"
 
 uninstall :
 
-	@echo "uninstalling binary file (${INSTALLPATH}${BIN})"
-	@rm -f ${INSTALLPATH}${BIN}
+	@echo "uninstalling binary file (${INSTALLPATH})"
+	@rm -f ${INSTALLPATH}/${BIN}
 	@echo "${BIN} uninstalled"
 clean :
 
 	@echo "cleaning ${BIN}"
-	@rm ${BIN}
+	@rm -f ${BIN}
 	@echo "${BIN} cleaned"
 
