-
Notifications
You must be signed in to change notification settings - Fork 158
Expand file tree
/
Copy pathMakefile.in
More file actions
108 lines (88 loc) · 2.69 KB
/
Copy pathMakefile.in
File metadata and controls
108 lines (88 loc) · 2.69 KB
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
#
# Makefile for hypermail package.
#
@SET_MAKE@
prefix=@prefix@
datarootdir = @datarootdir@
datadir = @datadir@
exec_prefix=@exec_prefix@
# This is where you want hypermail to be installed
bindir=@bindir@
# This is where the man page goes
mandir=@mandir@
srcdir=@srcdir@
# This is where the HTML documentation goes
htmldir=@htmldir@
INSTALL_PROG=@INSTALL@
#WNOERROR=-Werror
#WARNINGS=$(WNOERROR) -ansi -pedantic -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Dlint
# Compiler to use
CC=@CC@
CFLAGS=@CFLAGS@ $(WARNINGS)
CPPFLAGS=@CPPFLAGS@ @INCLUDES@
LIBS=@LIBS@
LDFLAGS=@LDFLAGS@
all: hypermail support
hypermail:
@cd src; $(MAKE) all CC="$(CC)" \
CFLAGS="$(CFLAGS)" \
CPPFLAGS="$(CPPFLAGS)" \
bindir="$(bindir)" LIBS="$(LIBS)"
support:
@cd archive; $(MAKE) all CC="$(CC)" CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)"
install:
@cd src; $(MAKE) install CC="$(CC)" CFLAGS="$(CFLAGS)" \
CPPFLAGS="$(CPPFLAGS)" \
bindir="$(bindir)" LIBS="$(LIBS)"
@cd docs; $(MAKE) install CC="$(CC)" CFLAGS="$(CFLAGS)" \
CPPFLAGS="$(CPPFLAGS)" \
mandir="$(mandir)" htmldir="$(htmldir)"
@cd archive; $(MAKE) install CC="$(CC)" CFLAGS="$(CFLAGS)" \
CPPFLAGS="$(CPPFLAGS)" \
bindir="$(bindir)"
uninstall:
@cd src; $(MAKE) uninstall bindir="$(bindir)"
@cd docs; $(MAKE) uninstall mandir="$(mandir)" htmldir="$(htmldir)"
@cd archive; $(MAKE) uninstall bindir="$(bindir)"
lint:
@cd src; $(MAKE) lint
@cd archive; $(MAKE) lint
clean:
@cd src; $(MAKE) clean
@cd docs; $(MAKE) clean
@cd archive; $(MAKE) clean
rm -f lint.out
clobber: clean
rm -f config.h
rm -f config.cache
rm -f config.log
rm -f config.status
rm -f archive/Makefile
rm -f docs/Makefile
rm -f src/Makefile
rm -f src/defaults.h
rm -f tests/testhm
rm -rf tests/testdir
rm -rf tests/mail-archive
rm -f Makefile
distclean: clobber
rm -f tests/testmail
# creates a distribution tar file.
# taking care to replace the git checkout dirname by
# by hypermail-version[-extraversion]/
# from the values found in patchlevel.h
tgz:
@(dir=`pwd`; source_dir=`basename $$dir`; \
version=`sed -nr '1s/.*VERSION\s+\"(.*)\"/\1/p' patchlevel.h`; \
extraversion=`sed -nr '2s/.*EXTRAVERSION\s+\"(.*)\"/-\1/p' patchlevel.h`; \
version=$$version$$extraversion; \
target_dir="hypermail-$$version"; \
echo creates $$target_dir.tgz from $$source_dir; \
cd .. ; \
transform_exp=s,^$$source_dir/,$$target_dir/,; \
tar -cf $$target_dir.tar \
--transform=$$transform_exp \
`cat $$source_dir/FILES | grep -v "^#" | sed "s:^:$$source_dir/:g"`; \
gzip $$target_dir.tar ; chmod a+r $$target_dir.tar.gz ; \
mv $$target_dir.tar.gz $$source_dir/ ; \
)