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.

53 lines
1.6 KiB

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