aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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