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.

44 lines
1.0 KiB

9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
  1. PREFIX ?= /usr/local
  2. MANPREFIX ?= ${PREFIX}/man
  3. RELEASE = 5.1
  4. CPPFLAGS += -DRELEASE=\"${RELEASE}\"
  5. all: versioncheck entr
  6. test: entr_spec entr
  7. @echo "Running unit tests"
  8. @./entr_spec
  9. gcc-lint: clean
  10. @CPPFLAGS="-std=c89 -pedantic -Wall -Wpointer-arith -Wbad-function-cast" make test
  11. regress:
  12. @echo "Running functional tests"
  13. @./system_test.sh
  14. entr: entr.c ${EXTRA_SRC}
  15. ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} ${EXTRA_SRC} entr.c -o $@
  16. entr_spec: entr_spec.c entr.c ${EXTRA_SRC}
  17. ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} ${EXTRA_SRC} entr_spec.c -o $@
  18. clean:
  19. rm -f entr entr_spec *.o
  20. distclean: clean
  21. rm -f Makefile
  22. install: entr
  23. @mkdir -p ${DESTDIR}${PREFIX}/bin
  24. @mkdir -p ${DESTDIR}${MANPREFIX}/man1
  25. install entr ${DESTDIR}${PREFIX}/bin
  26. install -m 644 entr.1 ${DESTDIR}${MANPREFIX}/man1
  27. uninstall:
  28. rm ${DESTDIR}${PREFIX}/bin/entr
  29. rm ${DESTDIR}${MANPREFIX}/man1/entr.1
  30. versioncheck:
  31. @head -n3 NEWS | egrep -q "^= Next Release: ${RELEASE}|^== ${RELEASE}: "
  32. .PHONY: all test gcc-lint regress clean distclean install uninstall versioncheck