-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
makefile.minix
83 lines (70 loc) · 2.8 KB
/
makefile.minix
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
73
74
75
76
77
78
79
80
81
82
83
include version
DESTDIR=/
CONFIG_FILE=$(DESTDIR)/etc/multitail.conf
DEBUG=-g
LDFLAGS+=-L/usr/pkg/lib -lpanel -lncurses -lutil -lm $(DEBUG) -rdynamic
CFLAGS+=-funsigned-char -D`uname` -O2 -Wall -DVERSION=\"$(VERSION)\" $(DEBUG) -DCONFIG_FILE=\"$(CONFIG_FILE)\" -I/usr/pkg/include
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 clipboard.o
all: multitail
multitail: $(OBJS)
$(CC) -Wall -W $(OBJS) $(LDFLAGS) -o multitail
multitail_ccmalloc: $(OBJS)
ccmalloc --no-wrapper $(CC) -Wall -W $(OBJS) $(LDFLAGS) -o ccmultitail
install: multitail
cp multitail $(DESTDIR)/usr/bin
cp multitail.1 $(DESTDIR)/usr/share/man/man1/multitail.1
mkdir -p $(DESTDIR)/usr/share/doc/multitail-$(VERSION)
cp *.txt INSTALL manual*.html $(DESTDIR)/usr/share/doc/multitail-$(VERSION)
#
### COPIED multitail.conf.new, YOU NEED TO REPLACE THE multitail.conf
### YOURSELF WITH THE NEW FILE
#
cp multitail.conf $(CONFIG_FILE).new
mkdir -p $(DESTDIR)/etc/multitail/
cp convert-* colors-* $(DESTDIR)/etc/multitail/
rm -f $(DESTDIR)/usr/share/man/man1/multitail.1.gz
gzip -9 $(DESTDIR)/usr/share/man/man1/multitail.1
#
# 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
#
# How do YOU use multitail? Please send me an e-mail so that I can
# update the examples page.
uninstall: clean
rm -f $(DESTDIR)/usr/bin/multitail
rm -f $(DESTDIR)/usr/share/man/man1/multitail.1.gz
rm -f $(CONFIG_FILE)
rm -rf $(DESTDIR)/usr/share/doc/multitail-$(VERSION)
clean:
rm -f $(OBJS) multitail core gmon.out *.da ccmultitail
package: clean
# source package
rm -rf multitail-$(VERSION)*
mkdir multitail-$(VERSION)
cp conversion-scripts/* *.conf *.c *.h multitail.1 manual*.html Makefile makefile.* Changes INSTALL license.txt readme.txt thanks.txt version multitail-$(VERSION)
tar czf multitail-$(VERSION).tgz multitail-$(VERSION)
rm -rf multitail-$(VERSION)
thanks:
echo Automatic thank you e-mail for multitail $(VERSION) on a `uname -a` | mail -s "multitail $(VERSION)" [email protected]
echo Is your company using MultiTail and you would like to be
echo mentioned on http://www.vanheusden.com/multitail/usedby.html ?
echo Then please send me a logo -not too big- and a link and I will
echo add it to that page.
echo
echo Oh, blatant plug: http://keetweej.vanheusden.com/wishlist.html
check:
cppcheck -v --force -j 3 --enable=all --inconclusive -I. . 2> err.txt
#
make clean
scan-build make
coverity:
make clean
rm -rf cov-int
CC=gcc cov-build --dir cov-int make all
tar vczf ~/site/coverity/multitail.tgz README cov-int/
putsite -q
/home/folkert/.coverity-mt.sh