blob: 4eae86027c141e4a2b27891a0cea4b5b25cfa33b (
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
36
|
CFLAGS=-O2 -fPIC -Wall
# these only affect the 'install' target (they don't get compiled
# into the binary).
PREFIX=/usr
MANDIR=$(PREFIX)/man
MAN1DIR=$(MANDIR)/man1
BINDIR=$(PREFIX)/bin
DESTDIR=
INSTALL_DATA=install -m0644
INSTALL_PROGRAM=install -s -m0755
GZIP=gzip -9
GZIP_MAN=yes
.PHONY: all test man clean install
all: uxd man
install: all
mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MAN1DIR)
$(INSTALL_DATA) uxd.1 $(DESTDIR)$(MAN1DIR)
ifeq ($(GZIP_MAN),yes)
$(GZIP) $(DESTDIR)$(MAN1DIR)/uxd.1
endif
$(INSTALL_PROGRAM) uxd $(DESTDIR)$(BINDIR)
test: uxd
./uxd
man: uxd.1
uxd.1: uxd.rst
rst2man uxd.rst > uxd.1
clean:
rm -f uxd
|