From 3a1053b29e5fb8109463259ee9dff3d8f4e4be5b Mon Sep 17 00:00:00 2001 From: pancake Date: Sun, 14 Dec 2008 03:05:19 +0100 Subject: * Oops missing up * Added fixups for make install/deinstall * HAVE_GUI is now enabled by default * New 'stop' button for goxf GUI * Fix lil bug in squeue.c * Initial .desktop icon for freedesktop environments (GNOME) --- Makefile | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index e5c6135..a8042d9 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,6 @@ include config.mk PREFIX?=/usr/local +DESTDIR?= all: logot frontend cd src && ${MAKE} all @@ -10,6 +11,7 @@ frontend: static: logot cd libusb && ${MAKE} all cd src && ${MAKE} static + cd logotool && ${MAKE} static allusb: logot cd libusb && ${MAKE} all @@ -23,10 +25,15 @@ clean: cd logotool && ${MAKE} clean install: - cp src/0xFFFF ${PREFIX}/bin - -cp src/gui/goxf ${PREFIX}/bin - cp logotool/logotool ${PREFIX}/bin + mkdir -p ${DESTDIR}${PREFIX}/bin + mkdir -p ${DESTDIR}${PREFIX}/share/applications/ + cp src/0xFFFF ${DESTDIR}${PREFIX}/bin + -cp src/gui/goxf ${DESTDIR}${PREFIX}/bin + cp logotool/logotool ${DESTDIR}${PREFIX}/bin + cp 0xFFFF.desktop ${DESTDIR}${PREFIX}/share/applications/ deinstall: - rm -f ${PREFIX}/bin/0xFFFF - rm -f ${PREFIX}/bin/logotool + rm -f ${DESTDIR}${PREFIX}/bin/0xFFFF + rm -f ${DESTDIR}${PREFIX}/bin/logotool + rm -f ${DESTDIR}${PREFIX}/bin/goxf + rm ${DESTDIR}${PREFIX}/share/applications/0xFFFF.desktop -- cgit v1.2.3