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.

63 lines
1.5 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
18 years ago
18 years ago
18 years ago
18 years ago
18 years ago
  1. # dwm - dynamic window manager
  2. # (C)opyright MMVI Anselm R. Garbe
  3. include config.mk
  4. SRC = client.c draw.c event.c main.c tag.c util.c
  5. OBJ = ${SRC:.c=.o}
  6. all: options dwm
  7. @echo finished
  8. options:
  9. @echo dwm build options:
  10. @echo "CFLAGS = ${CFLAGS}"
  11. @echo "LDFLAGS = ${LDFLAGS}"
  12. @echo "CC = ${CC}"
  13. @echo "LD = ${LD}"
  14. .c.o:
  15. @echo CC $<
  16. @${CC} -c ${CFLAGS} $<
  17. ${OBJ}: dwm.h config.h config.mk
  18. config.h:
  19. @echo creating $@ from config.default.h
  20. @cp config.default.h $@
  21. dwm: ${OBJ}
  22. @echo LD $@
  23. @${LD} -o $@ ${OBJ} ${LDFLAGS}
  24. @strip $@
  25. clean:
  26. @echo cleaning
  27. @rm -f dwm ${OBJ} dwm-${VERSION}.tar.gz
  28. dist: clean
  29. @echo creating dist tarball
  30. @mkdir -p dwm-${VERSION}
  31. @cp -R LICENSE Makefile README config.*.h config.mk \
  32. dwm.1 dwm.h ${SRC} dwm-${VERSION}
  33. @tar -cf dwm-${VERSION}.tar dwm-${VERSION}
  34. @gzip dwm-${VERSION}.tar
  35. @rm -rf dwm-${VERSION}
  36. install: all
  37. @echo installing executable file to ${DESTDIR}${PREFIX}/bin
  38. @mkdir -p ${DESTDIR}${PREFIX}/bin
  39. @cp -f dwm ${DESTDIR}${PREFIX}/bin
  40. @chmod 755 ${DESTDIR}${PREFIX}/bin/dwm
  41. @echo installing manual page to ${DESTDIR}${MANPREFIX}/man1
  42. @mkdir -p ${DESTDIR}${MANPREFIX}/man1
  43. @sed 's/VERSION/${VERSION}/g' < dwm.1 > ${DESTDIR}${MANPREFIX}/man1/dwm.1
  44. @chmod 644 ${DESTDIR}${MANPREFIX}/man1/dwm.1
  45. uninstall:
  46. @echo removing executable file from ${DESTDIR}${PREFIX}/bin
  47. @rm -f ${DESTDIR}${PREFIX}/bin/dwm
  48. @echo removing manual page from ${DESTDIR}${MANPREFIX}/man1
  49. @rm -f ${DESTDIR}${MANPREFIX}/man1/dwm.1
  50. .PHONY: all options clean dist install uninstall