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.

59 lines
1.6 KiB

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