1 |
chris_moore |
1.3 |
COPTS = -g |
2 |
gashuffer |
1.1 |
|
3 |
pcg |
1.5 |
CFLAGS = -Wall $(COPTS) |
4 |
gashuffer |
1.1 |
|
5 |
root |
1.6 |
LDFLAGS = -L/usr/X11R6/lib -lX11 -lXfixes |
6 |
gashuffer |
1.1 |
|
7 |
root |
1.6 |
PREFIX = $(DESTDIR)/usr |
8 |
gashuffer |
1.1 |
BINDIR = $(PREFIX)/bin |
9 |
|
|
MANDIR = $(PREFIX)/share/man/man1 |
10 |
|
|
DOCDIR = $(PREFIX)/share/doc/root-tail |
11 |
|
|
|
12 |
pcg |
1.5 |
SOURCES = root-tail.c |
13 |
root |
1.6 |
|
14 |
gashuffer |
1.1 |
all: root-tail man |
15 |
|
|
|
16 |
chris_moore |
1.4 |
root-tail: $(SOURCES) config.h |
17 |
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(SOURCES) |
18 |
chris_moore |
1.2 |
|
19 |
|
|
man: root-tail.1.gz |
20 |
|
|
|
21 |
|
|
root-tail.1.gz: root-tail.man |
22 |
gashuffer |
1.1 |
cp root-tail.man root-tail.1 |
23 |
|
|
gzip -f9 root-tail.1 |
24 |
|
|
|
25 |
|
|
clean: |
26 |
root |
1.6 |
rm -f root-tail root-tail.o root-tail.1.gz |
27 |
gashuffer |
1.1 |
|
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 |
root |
1.6 |
rm -f $(BINDIR)/root-tail $(MANDIR)/root-tail.1.gz |
36 |
|
|
rm -f $(DOCDIR)/README $(DOCDIR)/Changes |
37 |
gashuffer |
1.1 |
rmdir --ignore-fail-on-non-empty $(DOCDIR) |
38 |
|
|
|