File: makefile.macosx

package info (click to toggle)
multitail 7.1.5-2
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 884 kB
  • sloc: ansic: 14,945; makefile: 119; sh: 28; perl: 25
file content (59 lines) | stat: -rw-r--r-- 2,319 bytes parent folder | download | duplicates (3)
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
include version

CONFIG_FILE=$(DESTDIR)/usr/local/etc/multitail.conf

DEBUG:=#XXX -g -D_DEBUG #-pg -Wpedantic # -pg #-fprofile-arcs
LDFLAGS=-lpanel -lm $(DEBUG)
CPPFLAGS:=$(shell pkg-config --cflags ncurses)
NCURSES_LIB:=$(shell pkg-config --libs ncurses)
# pkg-config --libs --cflags ncurses
# -D_DARWIN_C_SOURCE -I/opt/local/include -L/opt/local/lib -lncurses
PLATFORM:=$(shell uname)
CFLAGS=-O2 -Wall -Wextra -std=c99 -D$(PLATFORM) -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 clipboard.o

all: multitail

multitail: $(OBJS)
	$(CC) -Wall -W $(OBJS) $(NCURSES_LIB) $(LDFLAGS) -o multitail

install: multitail
	cp multitail $(DESTDIR)/usr/local/bin
	cp multitail.1 $(DESTDIR)/usr/local/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)/usr/local/etc/multitail.conf.new
	mkdir -p $(DESTDIR)/usr/local/share/doc/multitail-$(VERSION)
	cp *.txt INSTALL manual.html $(DESTDIR)/usr/local/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

uninstall: clean
	rm -f $(DESTDIR)/usr/local/bin/multitail
	rm -f $(DESTDIR)/usr/local/share/man/man1/multitail.1
	rm -rf $(DESTDIR)/usr/local/share/doc/multitail-$(VERSION)

clean:
	rm -f $(OBJS) multitail core

package: clean
	# source package
	rm -rf multitail-$(VERSION)*
	mkdir multitail-$(VERSION)
	cp *.c *.h multitail.1 manual.html Makefile makefile.* Changes INSTALL license.txt readme.txt 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)" folkert@vanheusden.com