Implement Ian's suggestion that nntpid should output via $PAGER by
[sgt/utils] / xcopy / Makefile
CommitLineData
1166ff62 1# for `make release' and `make html'
8a48d402 2DESTDIR = .
3
1166ff62 4# for `make install'
5PREFIX = /usr/local
6BINDIR = $(PREFIX)/bin
7MANDIR = $(PREFIX)/man/man1
8
9acadc2b 9X11LIB=-L/usr/X11R6/lib -lX11
10
11all: xcopy.1 xcopy
12
13xcopy: xcopy.c
14 $(CC) $(CFLAGS) -o $@ $< $(X11LIB)
15
16%.1: %.but
17 halibut --man=$@ $<
18
19clean:
8a48d402 20 rm -f *.1 xcopy *.html *.tar.gz
21
22html:
23 halibut --html=$(DESTDIR)/xcopy.html xcopy.but
24
25release: xcopy.1
26 mkdir -p reltmp/xcopy
27 ln -s ../../xcopy.c reltmp/xcopy
28 ln -s ../../xcopy.1 reltmp/xcopy
29 ln -s ../../xcopy.but reltmp/xcopy
30 ln -s ../../Makefile reltmp/xcopy
ef397e72 31 tar -C reltmp -chzf $(DESTDIR)/xcopy.tar.gz xcopy
8a48d402 32 rm -rf reltmp
33
1166ff62 34install: xcopy xcopy.1
35 mkdir -p $(BINDIR)
36 install xcopy $(BINDIR)/xcopy
37 mkdir -p $(MANDIR)
38 install -m 0644 xcopy.1 $(MANDIR)/xcopy.1