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.

54 lines
1.5 KiB

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