From 2eb1774f3f30ee3e766ac73a6df037b62cd56d07 Mon Sep 17 00:00:00 2001 From: Sam Nystrom Date: Wed, 16 Aug 2023 16:27:37 -0400 Subject: Replace haredo with make Make is much more widely available. --- Makefile | 22 ++++++++++++++++++++++ all.do | 1 - clean.do | 1 - install.do | 8 -------- srtplay.1.do | 3 --- srtplay.do | 3 --- 6 files changed, 22 insertions(+), 16 deletions(-) create mode 100644 Makefile delete mode 100644 all.do delete mode 100644 clean.do delete mode 100644 install.do delete mode 100644 srtplay.1.do delete mode 100644 srtplay.do diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..dd6a300 --- /dev/null +++ b/Makefile @@ -0,0 +1,22 @@ +.POSIX: + +PREFIX=/usr/local +BINDIR=$(PREFIX)/bin +MANDIR=$(PREFIX)/share/man + +all: srtplay.1 + +srtplay.1: srtplay.1.scd + scdoc < $< > $@ + +clean: + rm -f srtplay.1 + +install: srtplay.1 + install -Dm755 srtplay $(BINDIR)/srtplay + install -Dm644 srtplay.1 $(MANDIR)/man1/srtplay.1 + +uninstall: + rm -f $(BINDIR)/srtplay $(MANDIR)/man1/srtplay.1 + +.PHONY: all clean install uninstall diff --git a/all.do b/all.do deleted file mode 100644 index 6767369..0000000 --- a/all.do +++ /dev/null @@ -1 +0,0 @@ -haredo srtplay srtplay.1 diff --git a/clean.do b/clean.do deleted file mode 100644 index ae247ac..0000000 --- a/clean.do +++ /dev/null @@ -1 +0,0 @@ -rm -f srtplay srtplay.1 diff --git a/install.do b/install.do deleted file mode 100644 index 0d66606..0000000 --- a/install.do +++ /dev/null @@ -1,8 +0,0 @@ -PREFIX="${PREFIX:-/usr/local}" -BINDIR="${BINDIR:-$PREFIX/bin}" -MANDIR="${MANDIR:-$PREFIX/share/man}" - -if haredo all; then - install -Dm755 ./srtplay "$BINDIR"/srtplay - install -Dm644 ./srtplay.1 "$MANDIR"/man1/srtplay.1 -fi diff --git a/srtplay.1.do b/srtplay.1.do deleted file mode 100644 index d054395..0000000 --- a/srtplay.1.do +++ /dev/null @@ -1,3 +0,0 @@ -if haredo ++ "$1".scd; then - scdoc < "$1".scd > "$3" -fi diff --git a/srtplay.do b/srtplay.do deleted file mode 100644 index 849b759..0000000 --- a/srtplay.do +++ /dev/null @@ -1,3 +0,0 @@ -if haredo ++ *.ha; then - hare build -o "$3" . -fi -- cgit v1.2.3