Makefile 347 B

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