ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/root-tail/Makefile
Revision: 1.1
Committed: Wed Aug 27 20:04:55 2003 UTC (21 years, 7 months ago) by gashuffer
Branch: MAIN
Log Message:
Adding real Makefile.  Will remove old Makefile.simple in a moment.

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     man:
17     cp root-tail.man root-tail.1
18     gzip -f9 root-tail.1
19    
20     clean:
21     rm -f root-tail root-tail.1.gz
22    
23     install: all
24     install -D -o root -g root root-tail $(BINDIR)
25     install -D -m 0644 -o root -g root root-tail.1.gz $(MANDIR)
26     install -D -m 0644 -o root -g root README $(DOCDIR)
27     install -m 0644 -o root -g root Changes $(DOCDIR)
28    
29     uninstall:
30     rm -f $(BINDIR)/root-tail
31     rm -f $(MANDIR)/root-tail.1.gz
32     rm -f $(DOCDIR)/Changes
33     rm -f $(DOCDIR)/README
34     rmdir --ignore-fail-on-non-empty $(DOCDIR)
35