diff options
-rw-r--r-- | Makefile | 7 | ||||
-rwxr-xr-x | dmenu_path | 2 |
2 files changed, 6 insertions, 3 deletions
@@ -32,7 +32,7 @@ clean: | |||
32 | dist: clean | 32 | dist: clean |
33 | @echo creating dist tarball | 33 | @echo creating dist tarball |
34 | @mkdir -p dmenu-${VERSION} | 34 | @mkdir -p dmenu-${VERSION} |
35 | @cp -R LICENSE Makefile README config.mk dmenu.1 dmenu.h ${SRC} dmenu-${VERSION} | 35 | @cp -R LICENSE Makefile README config.mk dmenu.1 dmenu.h dmenu_path ${SRC} dmenu-${VERSION} |
36 | @tar -cf dmenu-${VERSION}.tar dmenu-${VERSION} | 36 | @tar -cf dmenu-${VERSION}.tar dmenu-${VERSION} |
37 | @gzip dmenu-${VERSION}.tar | 37 | @gzip dmenu-${VERSION}.tar |
38 | @rm -rf dmenu-${VERSION} | 38 | @rm -rf dmenu-${VERSION} |
@@ -40,8 +40,9 @@ dist: clean | |||
40 | install: all | 40 | install: all |
41 | @echo installing executable file to ${DESTDIR}${PREFIX}/bin | 41 | @echo installing executable file to ${DESTDIR}${PREFIX}/bin |
42 | @mkdir -p ${DESTDIR}${PREFIX}/bin | 42 | @mkdir -p ${DESTDIR}${PREFIX}/bin |
43 | @cp -f dmenu ${DESTDIR}${PREFIX}/bin | 43 | @cp -f dmenu dmenu_path ${DESTDIR}${PREFIX}/bin |
44 | @chmod 755 ${DESTDIR}${PREFIX}/bin/dmenu | 44 | @chmod 755 ${DESTDIR}${PREFIX}/bin/dmenu |
45 | @chmod 755 ${DESTDIR}${PREFIX}/bin/dmenu_path | ||
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 |
@@ -49,7 +50,7 @@ install: all | |||
49 | 50 | ||
50 | uninstall: | 51 | uninstall: |
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 | 53 | @rm -f ${DESTDIR}${PREFIX}/bin/dmenu ${DESTDIR}${PREFIX}/bin/dmenu_path |
53 | @echo removing manual page from ${DESTDIR}${MANPREFIX}/man1 | 54 | @echo removing manual page from ${DESTDIR}${MANPREFIX}/man1 |
54 | @rm -f ${DESTDIR}${MANPREFIX}/man1/dmenu.1 | 55 | @rm -f ${DESTDIR}${MANPREFIX}/man1/dmenu.1 |
55 | 56 | ||
diff --git a/dmenu_path b/dmenu_path new file mode 100755 index 0000000..3070eb7 --- /dev/null +++ b/dmenu_path | |||
@@ -0,0 +1,2 @@ | |||
1 | #!/bin/sh | ||
2 | /bin/ls -lL `echo $PATH | tr : ' '` 2> /dev/null | awk '$1 ~ /^[^d].*x/ { print $NF }' | /usr/bin/sort -u | ||