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.

45 lines
992 B

19 years ago
19 years ago
19 years ago
19 years ago
19 years ago
19 years ago
19 years ago
19 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: dwm
  7. .c.o:
  8. ${CC} -c ${CFLAGS} $<
  9. ${OBJ}: config.h config.mk
  10. config.h:
  11. cp config.def.h $@
  12. dwm: ${OBJ}
  13. ${CC} -o $@ ${OBJ} ${LDFLAGS}
  14. clean:
  15. rm -f dwm ${OBJ} dwm-${VERSION}.tar.gz
  16. dist: clean
  17. mkdir -p dwm-${VERSION}
  18. cp -R LICENSE Makefile README config.def.h config.mk\
  19. dwm.1 drw.h util.h ${SRC} dwm.png transient.c dwm-${VERSION}
  20. tar -cf dwm-${VERSION}.tar dwm-${VERSION}
  21. gzip dwm-${VERSION}.tar
  22. rm -rf dwm-${VERSION}
  23. install: all
  24. mkdir -p ${DESTDIR}${PREFIX}/bin
  25. cp -f dwm ${DESTDIR}${PREFIX}/bin
  26. chmod 755 ${DESTDIR}${PREFIX}/bin/dwm
  27. mkdir -p ${DESTDIR}${MANPREFIX}/man1
  28. sed "s/VERSION/${VERSION}/g" < dwm.1 > ${DESTDIR}${MANPREFIX}/man1/dwm.1
  29. chmod 644 ${DESTDIR}${MANPREFIX}/man1/dwm.1
  30. uninstall:
  31. rm -f ${DESTDIR}${PREFIX}/bin/dwm\
  32. ${DESTDIR}${MANPREFIX}/man1/dwm.1
  33. .PHONY: all clean dist install uninstall