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.

51 lines
1.1 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
  1. # dwm - dynamic window manager
  2. # See LICENSE file for copyright and license details.
  3. include config.mk
  4. SRC = drw.c dwm.c util.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. ${CC} -c ${CFLAGS} $<
  14. ${OBJ}: config.h config.mk
  15. config.h:
  16. cp config.def.h $@
  17. dwm: ${OBJ}
  18. ${CC} -o $@ ${OBJ} ${LDFLAGS}
  19. clean:
  20. rm -f dwm ${OBJ} dwm-${VERSION}.tar.gz
  21. dist: clean
  22. mkdir -p dwm-${VERSION}
  23. cp -R LICENSE Makefile README config.def.h config.mk\
  24. dwm.1 drw.h util.h ${SRC} dwm.png transient.c dwm-${VERSION}
  25. tar -cf dwm-${VERSION}.tar dwm-${VERSION}
  26. gzip dwm-${VERSION}.tar
  27. rm -rf dwm-${VERSION}
  28. install: all
  29. mkdir -p ${DESTDIR}${PREFIX}/bin
  30. cp -f dwm ${DESTDIR}${PREFIX}/bin
  31. chmod 755 ${DESTDIR}${PREFIX}/bin/dwm
  32. mkdir -p ${DESTDIR}${MANPREFIX}/man1
  33. sed "s/VERSION/${VERSION}/g" < dwm.1 > ${DESTDIR}${MANPREFIX}/man1/dwm.1
  34. chmod 644 ${DESTDIR}${MANPREFIX}/man1/dwm.1
  35. uninstall:
  36. rm -f ${DESTDIR}${PREFIX}/bin/dwm\
  37. ${DESTDIR}${MANPREFIX}/man1/dwm.1
  38. .PHONY: all options clean dist install uninstall