Makefile 411 B

1234567891011121314151617181920212223
  1. include config.mk
  2. .PHONY: all clean install test
  3. all: scroll
  4. clean:
  5. rm -f scroll ptty
  6. config.h:
  7. cp config.def.h config.h
  8. scroll: scroll.c config.h
  9. install: scroll
  10. cp scroll ${BINDIR}
  11. cp scroll.1 ${MAN1DIR}
  12. test: scroll ptty
  13. # check usage
  14. if ./ptty ./scroll; then exit 1; fi
  15. # check exit passthrough of child
  16. if ! ./ptty ./scroll true; then exit 1; fi
  17. if ./ptty ./scroll false; then exit 1; fi