dmenu for lunch applications in dwm
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
1.8 KiB

18 years ago
18 years ago
13 years ago
13 years ago
13 years ago
18 years ago
13 years ago
18 years ago
13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
18 years ago
13 years ago
18 years ago
13 years ago
18 years ago
18 years ago
13 years ago
18 years ago
17 years ago
13 years ago
18 years ago
13 years ago
18 years ago
13 years ago
18 years ago
13 years ago
18 years ago
13 years ago
18 years ago
  1. # dmenu - dynamic menu
  2. # See LICENSE file for copyright and license details.
  3. include config.mk
  4. SRC = dmenu.c draw.c lsx.c
  5. OBJ = ${SRC:.c=.o}
  6. all: options dmenu lsx
  7. options:
  8. @echo dmenu build options:
  9. @echo "CFLAGS = ${CFLAGS}"
  10. @echo "LDFLAGS = ${LDFLAGS}"
  11. @echo "CC = ${CC}"
  12. .c.o:
  13. @echo CC -c $<
  14. @${CC} -c $< ${CFLAGS}
  15. ${OBJ}: config.mk
  16. dmenu: dmenu.o draw.o
  17. @echo CC -o $@
  18. @${CC} -o $@ dmenu.o draw.o ${LDFLAGS}
  19. lsx: lsx.o
  20. @echo CC -o $@
  21. @${CC} -o $@ lsx.o ${LDFLAGS}
  22. clean:
  23. @echo cleaning
  24. @rm -f dmenu ${OBJ} dmenu-${VERSION}.tar.gz
  25. dist: clean
  26. @echo creating dist tarball
  27. @mkdir -p dmenu-${VERSION}
  28. @cp LICENSE Makefile README config.mk dmenu.1 draw.h dmenu_run ${SRC} dmenu-${VERSION}
  29. @tar -cf dmenu-${VERSION}.tar dmenu-${VERSION}
  30. @gzip dmenu-${VERSION}.tar
  31. @rm -rf dmenu-${VERSION}
  32. install: all
  33. @echo installing executables to ${DESTDIR}${PREFIX}/bin
  34. @mkdir -p ${DESTDIR}${PREFIX}/bin
  35. @cp -f dmenu dmenu_run lsx ${DESTDIR}${PREFIX}/bin
  36. @chmod 755 ${DESTDIR}${PREFIX}/bin/dmenu
  37. @chmod 755 ${DESTDIR}${PREFIX}/bin/dmenu_run
  38. @chmod 755 ${DESTDIR}${PREFIX}/bin/lsx
  39. @echo installing manual pages to ${DESTDIR}${MANPREFIX}/man1
  40. @mkdir -p ${DESTDIR}${MANPREFIX}/man1
  41. @sed "s/VERSION/${VERSION}/g" < dmenu.1 > ${DESTDIR}${MANPREFIX}/man1/dmenu.1
  42. @sed "s/VERSION/${VERSION}/g" < lsx.1 > ${DESTDIR}${MANPREFIX}/man1/lsx.1
  43. @chmod 644 ${DESTDIR}${MANPREFIX}/man1/dmenu.1
  44. @chmod 644 ${DESTDIR}${MANPREFIX}/man1/lsx.1
  45. uninstall:
  46. @echo removing executables from ${DESTDIR}${PREFIX}/bin
  47. @rm -f ${DESTDIR}${PREFIX}/bin/dmenu
  48. @rm -f ${DESTDIR}${PREFIX}/bin/dmenu_run
  49. @rm -f ${DESTDIR}${PREFIX}/bin/lsx
  50. @echo removing manual page from ${DESTDIR}${MANPREFIX}/man1
  51. @rm -f ${DESTDIR}${MANPREFIX}/man1/dmenu.1
  52. @rm -f ${DESTDIR}${MANPREFIX}/man1/lsx.1
  53. .PHONY: all options clean dist install uninstall