aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-04-12 16:08:51 -0400
committerB. Watson <urchlay@slackware.uk>2024-04-12 16:08:51 -0400
commita731107f4a3c8dc8b544555f137017f0dcdc5a02 (patch)
tree5ae840020604df6323bf83522ac3a6b9b38dbaba /Makefile
parent768d5b5d512ae9dc4bb5be4bed29c08895ecdce4 (diff)
downloadsoxdial-a731107f4a3c8dc8b544555f137017f0dcdc5a02.tar.gz
Makefile: tweak.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index b7deaf6..763bd4a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,7 @@
+# Makefile for soxdial. There is no compilation, only 'make install'
+# does anything useful. Should work with any make (tested with GNU
+# and BSD).
+
DESTDIR=
PREFIX=/usr
BINDIR=$(PREFIX)/bin
@@ -14,6 +18,8 @@ all:
$(MAN): $(PROG)
perl $(PROG) --man > $(MAN)
+man: $(MAN)
+
install: $(MAN)
mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MAN1DIR) $(DESTDIR)$(DOCDIR)
cp $(PROG) $(DESTDIR)$(BINDIR)
@@ -22,3 +28,5 @@ install: $(MAN)
gzip -9 $(DESTDIR)$(MAN1DIR)/$(MAN)
cp README $(DESTDIR)$(DOCDIR)
chmod 644 $(DESTDIR)$(MAN1DIR)/$(MAN).gz $(DESTDIR)$(DOCDIR)/README
+
+.PHONY: all man install