-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
90 lines (68 loc) · 2.53 KB
/
Makefile.am
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
## Process this file with automake to produce Makefile.in
AUTOMAKE_OPTIONS = no-texinfo.tex
SUBDIRS = intl src doc po man
BUILT_SOURCES =
EXTRA_DIST = README \
config/config.rpath config/mkinstalldirs \
ChangeLog-1990 ChangeLog-1998 ChangeLog-2001 \
miscel/make-decc.com miscel/vaxc-make.com miscel/gnuc-make.com \
aclocal/UTIMBUF.m4 \
miscel/Makefile.mingw32 \
miscel/makefile.watcom \
miscel/README.vc++ \
miscel/README.VMS \
bootstrap \
regression
DISTCLEANFILES=config/config.cache config/config.log config.h
ps:
cd doc && $(MAKE) @[email protected]
pdf:
cd doc && $(MAKE) @[email protected]
html:
cd doc && $(MAKE) html
html-split:
cd doc && $(MAKE) html-split
# --------------- Maintainer's Section
MAINTAINERCLEANFILES = intl/* aclocal.m4 Makefile.in config.h.in stamp-h1 stamp-h.in configure \
@[email protected] indent-2.spec .gdbinit \
INSTALL ABOUT-NLS
## Use -g when in maintainer mode
if MAINTAINER_MODE
CFLAGS=-g -I.
else
CFLAGS=@CFLAGS@ -I.
endif
if MAINTAINER_MODE
README: Makefile miscel/README.in configure.ac
sed -e 's%!VERSION!%@VERSION@%g' miscel/[email protected] > $@
miscel/Makefile.mingw32 miscel/makefile.watcom :%: %.in
cat [email protected] | perl -e 'while (<>) {chomp; print "$$_\015\012"; }' > $@
miscel/README.vc++ miscel/README.VMS @[email protected] :%: Makefile %.in
sed -e 's%!VERSION!%@VERSION@%g' [email protected] > $@
tar:
$(MAKE) dist
install -D @PACKAGE@-@[email protected] $(REDHAT)/SOURCES/@PACKAGE@-@[email protected]
WWWDIR=/home/david/www/@PACKAGE@
REDHAT:=$(shell grep '^%_topdir' rpm/macros | cut -d \ -f 2)
SPECFILE=@PACKAGE@-${shell echo "@VERSION@" | cut -d. -f1}.spec
rpm: tar $(SPECFILE)
rpm --rcfile=/usr/lib/rpm/rpmrc:rpm/rpmrc --target=$(TARGET) --sign --clean -ba $(SPECFILE)
$(SPECFILE): rpm/$(SPECFILE).in configure.ac
cvs commit rpm/$(SPECFILE).in
sed -e 's/!VERSION!/@VERSION@/g' rpm/$(SPECFILE).in | grep -B2000 '!CHANGELOG!' | grep -v '!CHANGELOG!' > $(SPECFILE)
echo -n "%changelog" >> $(SPECFILE)
cvs log rpm/$(SPECFILE).in | \
grep -A2000 '^-----' | \
egrep -v '^-----|^=====|^revision' | \
awk -F'[ ;]' --assign lastdate="" '{ if ($$0~/^date: /) { \
if (lastdate != $$2) { \
lastdate=$$2; \
printf("\n* "); \
system("echo -n `date --date \""$$2" "$$3"\" \"+%a %b %d %Y\"`"); \
printf(" $(AUTHOR)\n"); \
} \
} else if ($$0~/^[A-Z]/) { printf("- %s\n", $$0); } else if ($$0~/./) { printf(" %s\n", $$0); } else {print} }' >> $(SPECFILE)
grep -A2000 '!CHANGELOG!' rpm/$(SPECFILE).in | grep -v '!CHANGELOG!' >> $(SPECFILE)
endif
ACLOCAL_AMFLAGS = -I m4