ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/root-tail/Makefile
Revision: 1.7
Committed: Sun Sep 1 12:47:41 2019 UTC (4 years, 10 months ago) by root
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
Log Message:
*** empty log message ***

File Contents

# Content
1 COPTS = -g
2
3 CFLAGS = -Wall $(COPTS)
4
5 LDFLAGS = -L/usr/X11R6/lib -lX11 -lXfixes
6
7 PREFIX = $(DESTDIR)/usr
8 BINDIR = $(PREFIX)/bin
9 MANDIR = $(PREFIX)/share/man/man1
10 DOCDIR = $(PREFIX)/share/doc/root-tail
11
12 SOURCES = root-tail.c
13
14 all: root-tail man
15
16 root-tail: $(SOURCES) config.h
17 $(CC) $(CFLAGS) -o $@ $(SOURCES) $(LDFLAGS)
18
19 man: root-tail.1.gz
20
21 root-tail.1.gz: root-tail.man
22 cp root-tail.man root-tail.1
23 gzip -f9 root-tail.1
24
25 clean:
26 rm -f root-tail root-tail.o root-tail.1.gz
27
28 install: all
29 install -D -o root -g root root-tail $(BINDIR)
30 install -D -m 0644 -o root -g root root-tail.1.gz $(MANDIR)
31 install -D -m 0644 -o root -g root README $(DOCDIR)
32 install -m 0644 -o root -g root Changes $(DOCDIR)
33
34 uninstall:
35 rm -f $(BINDIR)/root-tail $(MANDIR)/root-tail.1.gz
36 rm -f $(DOCDIR)/README $(DOCDIR)/Changes
37 rmdir --ignore-fail-on-non-empty $(DOCDIR)
38