| 123456789101112131415161718192021222324252627282930313233 |
- .POSIX:
- include config.mk
- all: scroll
- config.h:
- cp config.def.h config.h
- scroll: scroll.c config.h
- install: scroll
- mkdir -p $(BINDIR) $(MANDIR)/man1
- cp -f scroll $(BINDIR)
- cp -f scroll.1 $(MANDIR)/man1
- test: scroll ptty
- # check usage
- #if ./ptty ./scroll; then exit 1; fi
- # check exit passthrough of child
- if ! ./ptty ./scroll true; then exit 1; fi
- if ./ptty ./scroll false; then exit 1; fi
- clean:
- rm -f scroll ptty
- distclean: clean
- rm -f config.h
- .c:
- $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $< -lutil
- .PHONY: all install test clean distclean
|