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.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
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. MAN1 = dwm.1
  7. BIN = dwm
  8. all: options dwm
  9. @echo finished
  10. options:
  11. @echo dwm build options:
  12. @echo "CFLAGS = ${CFLAGS}"
  13. @echo "LDFLAGS = ${LDFLAGS}"
  14. @echo "CC = ${CC}"
  15. .c.o:
  16. @echo CC $<
  17. @${CC} -c ${CFLAGS} $<
  18. ${OBJ}: dwm.h config.h
  19. config.h:
  20. cp config.default.h config.h
  21. dwm: ${OBJ}
  22. @echo LD $@
  23. @${CC} -o $@ ${OBJ} ${LDFLAGS}
  24. clean:
  25. rm -f dwm *.o dwm-${VERSION}.tar.gz
  26. dist: clean
  27. mkdir -p dwm-${VERSION}
  28. cp -R Makefile README LICENSE config.mk *.h *.c ${MAN1} dwm-${VERSION}
  29. tar -cf dwm-${VERSION}.tar dwm-${VERSION}
  30. gzip dwm-${VERSION}.tar
  31. rm -rf dwm-${VERSION}
  32. install: all
  33. @mkdir -p ${DESTDIR}${PREFIX}/bin
  34. @cp -f ${BIN} ${DESTDIR}${PREFIX}/bin
  35. @for i in ${BIN}; do \
  36. chmod 755 ${DESTDIR}${PREFIX}/bin/`basename $$i`; \
  37. done
  38. @echo installed executable files to ${DESTDIR}${PREFIX}/bin
  39. @mkdir -p ${DESTDIR}${MANPREFIX}/man1
  40. @cp -f ${MAN1} ${DESTDIR}${MANPREFIX}/man1
  41. @for i in ${MAN1}; do \
  42. chmod 444 ${DESTDIR}${MANPREFIX}/man1/`basename $$i`; \
  43. done
  44. @echo installed manual pages to ${DESTDIR}${MANPREFIX}/man1
  45. uninstall:
  46. for i in ${BIN}; do \
  47. rm -f ${DESTDIR}${PREFIX}/bin/`basename $$i`; \
  48. done
  49. for i in ${MAN1}; do \
  50. rm -f ${DESTDIR}${MANPREFIX}/man1/`basename $$i`; \
  51. done