aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-04-12 14:53:11 -0400
committerB. Watson <urchlay@slackware.uk>2024-04-12 14:54:25 -0400
commit768d5b5d512ae9dc4bb5be4bed29c08895ecdce4 (patch)
tree2fc1da171b949e1ccbc68f259acfc02b505808ff
parent9f3f770562835c152ef98e89e45b51018fbb160a (diff)
downloadsoxdial-768d5b5d512ae9dc4bb5be4bed29c08895ecdce4.tar.gz
INSTALL, Makefile: added.
-rw-r--r--INSTALL10
-rw-r--r--Makefile24
2 files changed, 34 insertions, 0 deletions
diff --git a/INSTALL b/INSTALL
new file mode 100644
index 0000000..3ef419d
--- /dev/null
+++ b/INSTALL
@@ -0,0 +1,10 @@
+Use 'make install' to install soxdial.
+
+You can set these variables on the make command line to control the
+install paths:
+
+DESTDIR (default: "")
+PREFIX (default: /usr)
+BINDIR (default: $PREFIX/bin)
+MANDIR (default: $PREFIX/share/man)
+DOCDIR (default: $PREFIX/share/doc/soxdial)
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..b7deaf6
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,24 @@
+DESTDIR=
+PREFIX=/usr
+BINDIR=$(PREFIX)/bin
+MANDIR=$(PREFIX)/share/man
+MAN1DIR=$(MANDIR)/man1
+DOCDIR=$(PREFIX)/share/doc/soxdial
+
+PROG=soxdial
+MAN=$(PROG).1
+
+all:
+ @cat INSTALL
+
+$(MAN): $(PROG)
+ perl $(PROG) --man > $(MAN)
+
+install: $(MAN)
+ mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MAN1DIR) $(DESTDIR)$(DOCDIR)
+ cp $(PROG) $(DESTDIR)$(BINDIR)
+ chmod 755 $(DESTDIR)$(BINDIR)/$(PROG)
+ cp $(MAN) $(DESTDIR)$(MAN1DIR)
+ gzip -9 $(DESTDIR)$(MAN1DIR)/$(MAN)
+ cp README $(DESTDIR)$(DOCDIR)
+ chmod 644 $(DESTDIR)$(MAN1DIR)/$(MAN).gz $(DESTDIR)$(DOCDIR)/README