blob: a9988666a7325f8257ec530c8a5000a6d6fb17ee (
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
33
34
35
|
# 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
clean:
rm -f $(MAN) 1* 2* foo* bar* baz* test* *.pl *.wav
.PHONY: all man install clean
|