aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile6
-rw-r--r--config.mk2
-rwxr-xr-xdmenu_run2
3 files changed, 7 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index dac3b6e..8c0aa39 100644
--- a/Makefile
+++ b/Makefile
@@ -31,7 +31,7 @@ clean:
31dist: clean 31dist: clean
32 @echo creating dist tarball 32 @echo creating dist tarball
33 @mkdir -p dmenu-${VERSION} 33 @mkdir -p dmenu-${VERSION}
34 @cp -R LICENSE Makefile README config.mk dmenu.1 config.h dmenu_path ${SRC} dmenu-${VERSION} 34 @cp -R LICENSE Makefile README config.mk dmenu.1 config.h dmenu_path dmenu_run ${SRC} dmenu-${VERSION}
35 @tar -cf dmenu-${VERSION}.tar dmenu-${VERSION} 35 @tar -cf dmenu-${VERSION}.tar dmenu-${VERSION}
36 @gzip dmenu-${VERSION}.tar 36 @gzip dmenu-${VERSION}.tar
37 @rm -rf dmenu-${VERSION} 37 @rm -rf dmenu-${VERSION}
@@ -39,9 +39,10 @@ dist: clean
39install: all 39install: all
40 @echo installing executable file to ${DESTDIR}${PREFIX}/bin 40 @echo installing executable file to ${DESTDIR}${PREFIX}/bin
41 @mkdir -p ${DESTDIR}${PREFIX}/bin 41 @mkdir -p ${DESTDIR}${PREFIX}/bin
42 @cp -f dmenu dmenu_path ${DESTDIR}${PREFIX}/bin 42 @cp -f dmenu dmenu_path dmenu_run ${DESTDIR}${PREFIX}/bin
43 @chmod 755 ${DESTDIR}${PREFIX}/bin/dmenu 43 @chmod 755 ${DESTDIR}${PREFIX}/bin/dmenu
44 @chmod 755 ${DESTDIR}${PREFIX}/bin/dmenu_path 44 @chmod 755 ${DESTDIR}${PREFIX}/bin/dmenu_path
45 @chmod 755 ${DESTDIR}${PREFIX}/bin/dmenu_run
45 @echo installing manual page to ${DESTDIR}${MANPREFIX}/man1 46 @echo installing manual page to ${DESTDIR}${MANPREFIX}/man1
46 @mkdir -p ${DESTDIR}${MANPREFIX}/man1 47 @mkdir -p ${DESTDIR}${MANPREFIX}/man1
47 @sed "s/VERSION/${VERSION}/g" < dmenu.1 > ${DESTDIR}${MANPREFIX}/man1/dmenu.1 48 @sed "s/VERSION/${VERSION}/g" < dmenu.1 > ${DESTDIR}${MANPREFIX}/man1/dmenu.1
@@ -50,6 +51,7 @@ install: all
50uninstall: 51uninstall:
51 @echo removing executable file from ${DESTDIR}${PREFIX}/bin 52 @echo removing executable file from ${DESTDIR}${PREFIX}/bin
52 @rm -f ${DESTDIR}${PREFIX}/bin/dmenu ${DESTDIR}${PREFIX}/bin/dmenu_path 53 @rm -f ${DESTDIR}${PREFIX}/bin/dmenu ${DESTDIR}${PREFIX}/bin/dmenu_path
54 @rm -f ${DESTDIR}${PREFIX}/bin/dmenu ${DESTDIR}${PREFIX}/bin/dmenu_run
53 @echo removing manual page from ${DESTDIR}${MANPREFIX}/man1 55 @echo removing manual page from ${DESTDIR}${MANPREFIX}/man1
54 @rm -f ${DESTDIR}${MANPREFIX}/man1/dmenu.1 56 @rm -f ${DESTDIR}${MANPREFIX}/man1/dmenu.1
55 57
diff --git a/config.mk b/config.mk
index 5f19207..9406af6 100644
--- a/config.mk
+++ b/config.mk
@@ -1,5 +1,5 @@
1# dmenu version 1# dmenu version
2VERSION = 3.4 2VERSION = 3.5
3 3
4# Customize below to fit your system 4# Customize below to fit your system
5 5
diff --git a/dmenu_run b/dmenu_run
new file mode 100755
index 0000000..1cecc16
--- /dev/null
+++ b/dmenu_run
@@ -0,0 +1,2 @@
1#!/bin/sh
2exe=`dmenu_path | dmenu $*` && exec $exe