summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorpancake <pancake@dazo>2008-12-14 03:05:19 +0100
committerpancake <pancake@dazo>2008-12-14 03:05:19 +0100
commit3a1053b29e5fb8109463259ee9dff3d8f4e4be5b (patch)
tree6814a8b3bb1e4e1c1cb585b48f2a530052e8a5da /Makefile
parentfc3a613276f147c73214f67839e362f08664c7b1 (diff)
download0xFFFF-3a1053b29e5fb8109463259ee9dff3d8f4e4be5b.tar.bz2
* Oops missing up0.4
* 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)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 12 insertions, 5 deletions
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