Configuration file for DWM on MacBook Air
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.

60 lines
1.4 KiB

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