-
Notifications
You must be signed in to change notification settings - Fork 63
/
makefile.aix
47 lines (38 loc) · 1.71 KB
/
makefile.aix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
include version
CONFIG_FILE=$(DESTDIR)/etc/multitail.conf
DEBUG=#-g -D_DEBUG #-pg #-fprofile-arcs
LDFLAGS=-L/usr/local/lib/ -lpanel -lncurses -lm $(DEBUG)
CFLAGS=-I/usr/local/include/ -fsigned-char -DAIX -O2 -DVERSION=\"$(VERSION)\" $(DEBUG) -DCONFIG_FILE=\"$(CONFIG_FILE)\"
OBJS=utils.o mt.o error.o my_pty.o term.o scrollback.o help.o mem.o cv.o selbox.o stripstring.o color.o misc.o ui.o exec.o diff.o config.o cmdline.o globals.o history.o
all: multitail
multitail: $(OBJS)
$(CC) $(OBJS) $(LDFLAGS) -o multitail
install: multitail
cp multitail $(DESTDIR)/usr/bin
cp multitail.1 $(DESTDIR)/usr/share/man/man1/multitail.1
#
### COPIED multitail.conf.new, YOU NEED TO REPLACE THE multitail.conf
### YOURSELF WITH THE NEW FILE
#
cp multitail.conf $(DESTDIR)/etc/multitail.conf.new
mkdir -p $(DESTDIR)/usr/share/doc/multitail-$(VERSION)
cp *.txt INSTALL manual*.html $(DESTDIR)/usr/share/doc/multitail-$(VERSION)
#
# +-=-------------------------------------------------------------=-+
# | There's a mailinglist! |
# | Send an e-mail to [email protected] with in the subject |
# | 'subscribe multitail' to subscribe. |
# +-=-------------------------------------------------------------=-+
#
# you might want to run 'make thanks' now :-)
#
# http://www.vanheusden.com/wishlist.php
uninstall: clean
rm -f $(DESTDIR)/usr/bin/multitail
rm -f $(DESTDIR)/usr/share/man/man1/multitail.1.gz
rm -f $(DESTDIR)/etc/multitail.conf
rm -rf $(DESTDIR)/usr/share/doc/multitail-$(VERSION)
clean:
rm -f $(OBJS) multitail core
thanks:
echo Automatic thank you e-mail for multitail $(VERSION) on a `uname -a` | mail -s "multitail $(VERSION)" [email protected]