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.

55 lines
1.2 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
  1. # gridwm - grid window manager
  2. # (C)opyright MMVI Anselm R. Garbe
  3. include config.mk
  4. SRC = wm.c
  5. OBJ = ${SRC:.c=.o}
  6. MAN = gridwm.1
  7. BIN = gridwm gridmenu
  8. all: config gridwm
  9. @echo finished
  10. config:
  11. @echo gridwm build options:
  12. @echo "LIBS = ${LIBS}"
  13. @echo "CFLAGS = ${CFLAGS}"
  14. @echo "LDFLAGS = ${LDFLAGS}"
  15. @echo "CC = ${CC}"
  16. .c.o:
  17. @echo CC $<
  18. @${CC} -c ${CFLAGS} $<
  19. ${OBJ}: wm.h
  20. gridwm: ${OBJ}
  21. @echo LD $@
  22. @${CC} -o $@ ${OBJ} ${X11LDFLAGS}
  23. clean:
  24. rm -f gridwm *.o
  25. dist: clean
  26. mkdir -p gridwm-${VERSION}
  27. cp -R Makefile README LICENSE config.mk ${SRC} ${MAN} gridwm-${VERSION}
  28. tar -cf gridwm-${VERSION}.tar gridwm-${VERSION}
  29. gzip gridwm-${VERSION}.tar
  30. rm -rf gridwm-${VERSION}
  31. install: all
  32. @mkdir -p ${DESTDIR}${PREFIX}/bin
  33. @cp -f ${BIN} ${DESTDIR}${PREFIX}/bin
  34. @echo installed executable files to ${DESTDIR}${PREFIX}/bin
  35. @mkdir -p ${DESTDIR}${MANPREFIX}/man1
  36. @cp -f ${MAN1} ${DESTDIR}${MANPREFIX}/man1
  37. @echo installed manual pages to ${DESTDIR}${MANPREFIX}/man1
  38. uninstall:
  39. for i in ${BIN}; do \
  40. rm -f ${DESTDIR}${PREFIX}/bin/`basename $$i`; \
  41. done
  42. for i in ${MAN1}; do \
  43. rm -f ${DESTDIR}${MANPREFIX}/man1/`basename $$i`; \
  44. done