| 1 |
chris_moore |
1.3 |
COPTS = -g |
| 2 |
gashuffer |
1.1 |
|
| 3 |
pcg |
1.5 |
CFLAGS = -Wall $(COPTS) |
| 4 |
gashuffer |
1.1 |
|
| 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 |
pcg |
1.5 |
SOURCES = root-tail.c |
| 13 |
gashuffer |
1.1 |
all: root-tail man |
| 14 |
|
|
|
| 15 |
chris_moore |
1.4 |
root-tail: $(SOURCES) config.h |
| 16 |
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(SOURCES) |
| 17 |
chris_moore |
1.2 |
|
| 18 |
|
|
man: root-tail.1.gz |
| 19 |
|
|
|
| 20 |
|
|
root-tail.1.gz: root-tail.man |
| 21 |
gashuffer |
1.1 |
cp root-tail.man root-tail.1 |
| 22 |
|
|
gzip -f9 root-tail.1 |
| 23 |
|
|
|
| 24 |
|
|
clean: |
| 25 |
|
|
rm -f root-tail root-tail.1.gz |
| 26 |
|
|
|
| 27 |
|
|
install: all |
| 28 |
|
|
install -D -o root -g root root-tail $(BINDIR) |
| 29 |
|
|
install -D -m 0644 -o root -g root root-tail.1.gz $(MANDIR) |
| 30 |
|
|
install -D -m 0644 -o root -g root README $(DOCDIR) |
| 31 |
|
|
install -m 0644 -o root -g root Changes $(DOCDIR) |
| 32 |
|
|
|
| 33 |
|
|
uninstall: |
| 34 |
|
|
rm -f $(BINDIR)/root-tail |
| 35 |
|
|
rm -f $(MANDIR)/root-tail.1.gz |
| 36 |
|
|
rm -f $(DOCDIR)/Changes |
| 37 |
|
|
rm -f $(DOCDIR)/README |
| 38 |
|
|
rmdir --ignore-fail-on-non-empty $(DOCDIR) |
| 39 |
|
|
|