summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSam Nystrom <sam@samnystrom.dev>2023-08-16 21:09:35 -0400
committerSam Nystrom <sam@samnystrom.dev>2023-08-16 21:09:35 -0400
commitca6d0ef735fd22c818692d38d8148a43a655778e (patch)
treed778e7e2e2637d9e30c10cbeb5a24289a3eb6365 /Makefile
parent1775bfd721519c9bc2c99d8c5e7b35cf6500b589 (diff)
Check Perl syntax during build
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index dd6a300..931eb44 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,10 @@ PREFIX=/usr/local
BINDIR=$(PREFIX)/bin
MANDIR=$(PREFIX)/share/man
-all: srtplay.1
+all: srtplay srtplay.1
+
+srtplay:
+ perl -c srtplay
srtplay.1: srtplay.1.scd
scdoc < $< > $@
@@ -12,11 +15,11 @@ srtplay.1: srtplay.1.scd
clean:
rm -f srtplay.1
-install: srtplay.1
+install: srtplay 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
+.PHONY: all srtplay clean install uninstall