blob: 763bd4a44cd9393163f2bb5a1f1ded3f1064e426 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# 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
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)
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
.PHONY: all man install
|