ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/root-tail/Makefile
Revision: 1.3
Committed: Wed Apr 7 12:35:13 2004 UTC (20 years, 11 months ago) by chris_moore
Branch: MAIN
CVS Tags: rel-1_1
Changes since 1.2: +1 -1 lines
Log Message:
Fixed a teensy 1-byte memory leak that happened each time a "\n" was
added to an old partial line and -partial was in effect without
-update.

File Contents

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