Makefile (multitail-6.2.1.tgz) | : | Makefile (multitail-6.4.tgz) | ||
---|---|---|---|---|
include version | include version | |||
UTF8_SUPPORT=yes | UTF8_SUPPORT=yes | |||
DESTDIR=/ | DESTDIR= | |||
PREFIX=/usr | ||||
CONFIG_FILE=$(DESTDIR)/etc/multitail.conf | CONFIG_FILE=$(DESTDIR)/etc/multitail.conf | |||
CC=gcc | CC?=gcc | |||
DEBUG=-g -D_FORTIFY_SOURCE=2 # -D_DEBUG # -pg # -D_DEBUG #-pg -W -pedantic # - | DEBUG=-g -O2 -Wall # -D_DEBUG # -pg # -D_DEBUG #-pg -W -pedantic # -pg #-fprof | |||
pg #-fprofile-arcs | ile-arcs | |||
ifeq ($(UTF8_SUPPORT),yes) | ifeq ($(UTF8_SUPPORT),yes) | |||
LDFLAGS+=-lpanelw -lncursesw -lutil -lm $(DEBUG) -rdynamic | LDFLAGS+=-lpanelw -lncursesw -lutil -lm | |||
CFLAGS+=-funsigned-char -D`uname` -O2 -Wall -DVERSION=\"$(VERSION)\" $(DEBUG) -D | CFLAGS+=-funsigned-char -D`uname` -DVERSION=\"$(VERSION)\" -DCONFIG_FILE=\"$(CON | |||
CONFIG_FILE=\"$(CONFIG_FILE)\" -DUTF8_SUPPORT | FIG_FILE)\" -DUTF8_SUPPORT -D_FORTIFY_SOURCE=2 | |||
else | else | |||
LDFLAGS+=-lpanel -lncurses -lutil -lm $(DEBUG) -rdynamic | LDFLAGS+=-lpanel -lncurses -lutil -lm | |||
CFLAGS+=-funsigned-char -D`uname` -O2 -Wall -DVERSION=\"$(VERSION)\" $(DEBUG) -D | CFLAGS+=-funsigned-char -D`uname` -DVERSION=\"$(VERSION)\" -DCONFIG_FILE=\"$(CON | |||
CONFIG_FILE=\"$(CONFIG_FILE)\" | FIG_FILE)\" -D_FORTIFY_SOURCE=2 | |||
endif | endif | |||
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 h istory.o | 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 h istory.o xclip.o | |||
all: multitail | all: multitail | |||
multitail: $(OBJS) | multitail: $(OBJS) | |||
$(CC) -Wall -W $(OBJS) $(LDFLAGS) -o multitail | $(CC) $(OBJS) $(LDFLAGS) -o multitail | |||
multitail_ccmalloc: $(OBJS) | multitail_ccmalloc: $(OBJS) | |||
ccmalloc --no-wrapper $(CC) -Wall -W $(OBJS) $(LDFLAGS) -o ccmultitail | ccmalloc --no-wrapper $(CC) -Wall -W $(OBJS) $(LDFLAGS) -o ccmultitail | |||
install: multitail | install: multitail | |||
cp multitail $(DESTDIR)/usr/bin | mkdir -p $(DESTDIR)$(PREFIX)/bin | |||
cp multitail.1 $(DESTDIR)/usr/share/man/man1/multitail.1 | cp multitail $(DESTDIR)$(PREFIX)/bin | |||
mkdir -p $(DESTDIR)/usr/share/doc/multitail-$(VERSION) | mkdir -p $(DESTDIR)$(PREFIX)/share/man/man1 | |||
cp *.txt INSTALL manual*.html $(DESTDIR)/usr/share/doc/multitail-$(VERSIO | cp multitail.1 $(DESTDIR)$(PREFIX)/share/man/man1/multitail.1 | |||
N) | mkdir -p $(DESTDIR)$(PREFIX)/share/doc/multitail-$(VERSION) | |||
cp *.txt INSTALL manual*.html $(DESTDIR)$(PREFIX)/share/doc/multitail-$(V | ||||
ERSION) | ||||
# | # | |||
### COPIED multitail.conf.new, YOU NEED TO REPLACE THE multitail.conf | ### COPIED multitail.conf.new, YOU NEED TO REPLACE THE multitail.conf | |||
### YOURSELF WITH THE NEW FILE | ### YOURSELF WITH THE NEW FILE | |||
# | # | |||
cp multitail.conf $(CONFIG_FILE).new | ||||
mkdir -p $(DESTDIR)/etc/multitail/ | mkdir -p $(DESTDIR)/etc/multitail/ | |||
cp convert-* colors-* $(DESTDIR)/etc/multitail/ | cp multitail.conf $(CONFIG_FILE).new | |||
rm -f $(DESTDIR)/usr/share/man/man1/multitail.1.gz | cp conversion-scripts/* $(DESTDIR)/etc/multitail/ | |||
gzip -9 $(DESTDIR)/usr/share/man/man1/multitail.1 | #rm -f $(DESTDIR)$(PREFIX)/share/man/man1/multitail.1.gz | |||
#gzip -9 $(DESTDIR)$(PREFIX)/share/man/man1/multitail.1 | ||||
# | # | |||
# There's a mailinglist! | # There's a mailinglist! | |||
# Send an e-mail to minimalist@vanheusden.com with in the subject | # Send an e-mail to minimalist@vanheusden.com with in the subject | |||
# 'subscribe multitail' to subscribe. | # 'subscribe multitail' to subscribe. | |||
# | # | |||
# you might want to run 'make thanks' now :-) | # you might want to run 'make thanks' now :-) | |||
# http://www.vanheusden.com/wishlist.php | # http://www.vanheusden.com/wishlist.php | |||
# | # | |||
# How do YOU use multitail? Please send me an e-mail so that I can | # How do YOU use multitail? Please send me an e-mail so that I can | |||
# update the examples page. | # update the examples page. | |||
uninstall: clean | uninstall: clean | |||
rm -f $(DESTDIR)/usr/bin/multitail | rm -f $(DESTDIR)$(PREFIX)/bin/multitail | |||
rm -f $(DESTDIR)/usr/share/man/man1/multitail.1.gz | rm -f $(DESTDIR)$(PREFIX)/share/man/man1/multitail.1.gz | |||
rm -f $(CONFIG_FILE) | # rm -f $(CONFIG_FILE) | |||
rm -rf $(DESTDIR)/usr/share/doc/multitail-$(VERSION) | rm -rf $(DESTDIR)$(PREFIX)/share/doc/multitail-$(VERSION) | |||
clean: | clean: | |||
rm -f $(OBJS) multitail core gmon.out *.da ccmultitail | rm -f $(OBJS) multitail core gmon.out *.da ccmultitail | |||
package: clean | package: clean | |||
# source package | # source package | |||
rm -rf multitail-$(VERSION)* | rm -rf multitail-$(VERSION)* | |||
mkdir 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) | cp conversion-scripts/* *.conf *.c *.h multitail.1 manual*.html Makefile makefile.* INSTALL license.txt readme.txt thanks.txt version multitail-$(VERSION ) | |||
tar czf multitail-$(VERSION).tgz multitail-$(VERSION) | tar czf multitail-$(VERSION).tgz multitail-$(VERSION) | |||
rm -rf multitail-$(VERSION) | rm -rf multitail-$(VERSION) | |||
thanks: | thanks: | |||
echo Automatic thank you e-mail for multitail $(VERSION) on a `uname -a` | mail -s "multitail $(VERSION)" folkert@vanheusden.com | echo Automatic thank you e-mail for multitail $(VERSION) on a `uname -a` | mail -s "multitail $(VERSION)" folkert@vanheusden.com | |||
echo Is your company using MultiTail and you would like to be | echo Is your company using MultiTail and you would like to be | |||
echo mentioned on http://www.vanheusden.com/multitail/usedby.html ? | 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 Then please send me a logo -not too big- and a link and I will | |||
echo add it to that page. | echo add it to that page. | |||
echo | echo | |||
End of changes. 11 change blocks. | ||||
26 lines changed or deleted | 29 lines changed or added |