ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/root-tail/Makefile
Revision: 1.2
Committed: Sun Mar 28 01:55:51 2004 UTC (21 years ago) by chris_moore
Branch: MAIN
CVS Tags: rel-0_95, rel-1_0, last_stable
Changes since 1.1: +4 -1 lines
Log Message:
Don't re-make the manual page every time.

File Contents

# User Rev Content
1 gashuffer 1.1 COPTS = -g -O2
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 chris_moore 1.2
17     man: root-tail.1.gz
18    
19     root-tail.1.gz: root-tail.man
20 gashuffer 1.1 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