forked from mateusz-holenko/multitail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile.solaris_gcc
72 lines (60 loc) · 2.66 KB
/
makefile.solaris_gcc
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
include version
DESTDIR=/
CONFIG_FILE=$(DESTDIR)/etc/multitail.conf
CC=gcc
DEBUG=#-g -D_DEBUG #-pg #-fprofile-arcs
CFLAGS=${EXTRA_CFLAGS} -O2 -I/usr/local/include/ -DVERSION=\"$(VERSION)\" $(DEBUG) -DCONFIG_FILE=\"$(CONFIG_FILE)\"
LDFLAGS=${EXTRA_LDFLAGS} -L/usr/local/lib/ -lsocket -lpanel -lncurses -lnsl -lm $(DEBUG)
OBJS=utils.o mt.o error.o my_pty.o term.o scrollback.o help.o mem.o cv.o color.o stripstring.o selbox.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
/usr/sbin/install -m 0755 -u root -g sys -d $(DESTDIR)/usr
/usr/sbin/install -m 0755 -u root -g bin -d $(DESTDIR)/usr/bin
cp multitail $(DESTDIR)/usr/bin
/usr/sbin/install -m 0755 -u root -g sys -d $(DESTDIR)/usr/share
/usr/sbin/install -m 0755 -u root -g bin -d $(DESTDIR)/usr/share/man
/usr/sbin/install -m 0755 -u root -g bin -d $(DESTDIR)/usr/share/man/man1
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
#
/usr/sbin/install -m 0755 -u root -g sys -d $(DESTDIR)/etc
cp multitail.conf $(DESTDIR)/etc/multitail.conf.new
/usr/sbin/install -m 0755 -u root -g other -d $(DESTDIR)/usr/share/doc
/usr/sbin/install -m 0755 -u root -g other -d $(DESTDIR)/usr/share/doc/multitail-$(VERSION)
#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 minimalist@vanheusden.com with in the subject |
# | 'subscribe multitail' to subscribe. |
# +-=-------------------------------------------------------------=-+
#
# you might want to run 'make thanks' now :-)
#
# http://www.vanheusden.com/wishlist.php
solarisbinpackage: multitail
rm -rf usr etc
mkdir -p etc
cp multitail.conf etc
mkdir -p usr/bin
mkdir -p usr/share/man/man1
mkdir -p usr/share/doc/multitail-$(VERSION)
cp multitail usr/bin
cp multitail.1 usr/share/man/man1
cp *.txt INSTALL manual.html usr/share/doc/multitail-$(VERSION)
tar cvf multitail-$(VERSION)-solaris.tar usr etc
rm -rf usr etc
gzip -9 multitail-$(VERSION)-solaris.tar
uninstall: clean
rm -f $(DESTDIR)/usr/bin/multitail
rm -f $(DESTDIR)/usr/man/man1/multitail.1.gz
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)" folkert@vanheusden.com