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.

57 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.o draw.o
  11. dmenu_path: dmenu_path.o
  12. .c.o: config.mk
  13. @echo CC -c $<
  14. @${CC} -c $< ${CFLAGS}
  15. dmenu dmenu_path:
  16. @echo CC -o $@
  17. @${CC} -o $@ $+ ${LDFLAGS}
  18. clean:
  19. @echo cleaning
  20. @rm -f dmenu dmenu.o draw.o dmenu_path dmenu_path.o dmenu-${VERSION}.tar.gz
  21. dist: clean
  22. @echo creating dist tarball
  23. @mkdir -p dmenu-${VERSION}
  24. @cp LICENSE Makefile README config.mk dmenu.1 dmenu.c dmenu_path.c dmenu_run dmenu-${VERSION}
  25. @tar -cf dmenu-${VERSION}.tar dmenu-${VERSION}
  26. @gzip dmenu-${VERSION}.tar
  27. @rm -rf dmenu-${VERSION}
  28. install: all
  29. @echo installing executables to ${DESTDIR}${PREFIX}/bin
  30. @mkdir -p ${DESTDIR}${PREFIX}/bin
  31. @cp -f dmenu dmenu_path dmenu_run ${DESTDIR}${PREFIX}/bin
  32. @chmod 755 ${DESTDIR}${PREFIX}/bin/dmenu
  33. @chmod 755 ${DESTDIR}${PREFIX}/bin/dmenu_path
  34. @chmod 755 ${DESTDIR}${PREFIX}/bin/dmenu_run
  35. @echo installing manual page to ${DESTDIR}${MANPREFIX}/man1
  36. @mkdir -p ${DESTDIR}${MANPREFIX}/man1
  37. @sed "s/VERSION/${VERSION}/g" < dmenu.1 > ${DESTDIR}${MANPREFIX}/man1/dmenu.1
  38. @chmod 644 ${DESTDIR}${MANPREFIX}/man1/dmenu.1
  39. uninstall:
  40. @echo removing executables from ${DESTDIR}${PREFIX}/bin
  41. @rm -f ${DESTDIR}${PREFIX}/bin/dmenu
  42. @rm -f ${DESTDIR}${PREFIX}/bin/dmenu_path
  43. @rm -f ${DESTDIR}${PREFIX}/bin/dmenu_run
  44. @echo removing manual page from ${DESTDIR}${MANPREFIX}/man1
  45. @rm -f ${DESTDIR}${MANPREFIX}/man1/dmenu.1
  46. .PHONY: all options clean dist install uninstall