File: Makefile.in

package info (click to toggle)
mutt 0.91.2-2
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 2,056 kB
  • ctags: 2,189
  • sloc: ansic: 34,582; sh: 203; makefile: 197; perl: 21; awk: 2
file content (143 lines) | stat: -rw-r--r-- 4,292 bytes parent folder | download
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
#
# Copyright (C) 1996,1997 Michael R. Elkins <me@cs.hmc.edu>
#
#     This program is free software; you can redistribute it and/or modify
#     it under the terms of the GNU General Public License as published by
#     the Free Software Foundation; either version 2 of the License, or
#     (at your option) any later version.
#
#     This program is distributed in the hope that it will be useful,
#     but WITHOUT ANY WARRANTY; without even the implied warranty of
#     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#     GNU General Public License for more details.
#
#     You should have received a copy of the GNU General Public License
#     along with this program; if not, write to the Free Software
#     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#

SHELL=/bin/sh
VERSION=@VERSION@

prefix=@prefix@
exec_prefix=@exec_prefix@
bindir=@bindir@
libdir=@libdir@
mandir=@mandir@
sharedir=@sharedir@
srcdir=@srcdir@
VPATH=@srcdir@
@SET_MAKE@

INSTALL=@INSTALL@
CC=@CC@
XCPPFLAGS=-I. @CPPFLAGS@
CFLAGS=@CFLAGS@ -DSHAREDIR=\"$(sharedir)\" $(XCPPFLAGS)
LDFLAGS=@LDFLAGS@
LIBS=@LIBS@
OPS=@OPS@
OBJS=	addrbook.o alias.o attach.o browser.o buffy.o color.o \
        commands.o complete.o compose.o copy.o curs_lib.o curs_main.o date.o \
	edit.o enter.o flags.o init.o filter.o from.o getdomain.o \
	handler.o hash.o hdrline.o headers.o help.o hook.o keymap.o lib.o \
	main.o mbox.o menu.o mh.o mx.o pager.o parse.o pattern.o \
	postpone.o recvattach.o rfc822.o \
	rfc1524.o rfc2047.o score.o send.o sendlib.o signal.o sort.o \
	status.o system.o thread.o @LIBOBJS@

CLEANFILES=mutt *.o core
VERYCLEANFILES=$(CLEANFILES) Makefile config.cache config.log \
	config.status config.h
DISTCLEANFILES=$(VERYCLEANFILES) tags keymap_defs.h *.rej *.orig *~ Makefile.bak

# kill these files when making new export distributions
NONEXPORT=pgp.c pgp.h pgpinvoke.c pgpkey.c pgppubring.c sha.h sha1dgst.c \
	sha_locl.h OPS.PGP doc/pgp-Notes.txt doc/language.txt \
	doc/language50.txt

all: mutt

mutt: keymap_defs.h $(OBJS) $(REGEX)
	$(CC) -o mutt $(OBJS) $(REGEX) $(LDFLAGS) $(LIBS)

keymap_defs.h: Makefile $(OPS)
	rm -f keymap_defs.h
	$(srcdir)/gen_defs $(OPS) > keymap_defs.h

install: mutt
	$(srcdir)/mkinstalldirs $(bindir)
	-mv -f $(bindir)/mutt $(bindir)/mutt.old
	$(INSTALL) @MUTT_GROUP@ -m @MUTT_PERMISSION@ mutt $(bindir)
	$(srcdir)/mkinstalldirs $(mandir)/man1
	$(INSTALL) -m 644 $(srcdir)/doc/mutt.man $(mandir)/man1/mutt.1
	-if [ ! -f $(sharedir)/Muttrc ]; then \
		$(srcdir)/mkinstalldirs $(sharedir); \
		$(INSTALL) -m 644 $(srcdir)/Muttrc $(sharedir); \
	fi
	-if [ ! -f $(sharedir)/mime.types ]; then \
		$(INSTALL) -m 644 $(srcdir)/mime.types $(sharedir); \
	fi

uninstall:
	rm -f $(bindir)/mutt $(sharedir)/Muttrc $(mandir)/man1/mutt.1

$(srcdir)/configure: $(srcdir)/configure.in
	autoconf

Makefile: $(srcdir)/Makefile.in
	./config.status

config.h.in: $(srcdir)/acconfig.h
	autoheader

config.h: $(srcdir)/config.h.in
	./config.status

tags:
	(cd $(srcdir) && ctags *.[ch])

dep: Makefile
	mv Makefile Makefile.bak
	awk -f $(srcdir)/depend.awk < Makefile.bak > Makefile
	echo '# DO NOT REMOVE THIS LINE' >> Makefile
	$(CC) -MM $(XCPPFLAGS) $(srcdir)/*.c >> Makefile

clean-real:
	(cd $(srcdir) && rm -f $(CLEANFILES))
	(cd $(srcdir)/doc && $(MAKE) $@)

clean:
	rm -f $(CLEANFILES)

veryclean:
	rm -f $(VERYCLEANFILES)

distclean:
	(cd $(srcdir) && rm -f $(DISTCLEANFILES))
	(cd $(srcdir)/doc && $(MAKE) $@)

reldate:
	rm -f $(srcdir)/reldate.h
	echo 'const char *ReleaseDate = "'`date +%Y-%m-%d`'";' > $(srcdir)/reldate.h

# make export version
usdist: distclean reldate
	rm -rf /tmp/mutt-$(VERSION)
	(cd .. && cp -r mutt-$(VERSION) /tmp)
	for i in `grep _PGPPATH $(srcdir)/*.[ch] | sed 's/^\([^:]*\).*/\1/' | grep -v '/main\.c' | grep -v '/pgp'` ; do \
		target=`basename $$i` ; \
		$(srcdir)/reap.pl _PGPPATH < $(srcdir)/$$target > /tmp/mutt-$(VERSION)/$$target; \
	done
	for i in $(NONEXPORT); do \
		rm -f /tmp/mutt-$(VERSION)/$$i; \
	done
	(cd /tmp && tar cvf mutt-$(VERSION).tar mutt-$(VERSION) && gzip mutt-$(VERSION).tar)
	rm -rf /tmp/mutt-$(VERSION)

# make international distribution
dist: distclean reldate
	(cd $(srcdir)/.. && tar cfz mutt-$(VERSION)i.tar.gz mutt-$(VERSION)i)

rx/librx.a:
	(cd rx && $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)")