-
Notifications
You must be signed in to change notification settings - Fork 30
/
Makefile.am
87 lines (67 loc) · 2.92 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
# Makefile.am for Blackbox - an X11 Window manager
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = data po doc lib src util
EXTRA_DIST = INSTALL COPYING AUTHORS NEWS README README.md README.md.in THANKS TODO ChangeLog RELEASE RELEASE.md COMPLIANCE
dist_noinst_SCRIPTS = gennews.sh autogen.sh configure.sh rebuild.sh dist.sh
DISTCLEANFILES = ChangeLog AUTHORS NEWS README README.md README.html README.txt RELEASE RELEASE.html RELEASE.txt
dist-hook:
$(AM_V_GEN)if test -x "`which git 2>/dev/null`" -a -d "$(srcdir)/.git" ; then \
chmod u+w $(distdir)/{ChangeLog,AUTHORS,NEWS} ; \
( cd $(srcdir) ; \
echo -e "# created with git log --stat=76 -M -C -500|fmt -sct -w80\n" ; \
git log --stat=76 -M -C -500|fmt -sct -w80 \
)|head -10000>$(distdir)/ChangeLog ; \
( cd $(srcdir) ; \
echo "$(PACKAGE) -- authors file. $(DATE)" ; \
echo "" ; \
git log|grep '^Author:'|awk '{if(!authors[$$0]){print$$0;authors[$$0]=1;}}' \
)>$(distdir)/AUTHORS ; \
( cd $(srcdir) ; \
echo "$(PACKAGE) -- history of user-visible changes. $(DATE)" ; \
PACKAGE="$(PACKAGE)" $(srcdir)/gennews.sh \
)>$(distdir)/NEWS ; \
fi ; \
chmod u+w $(distdir)/{README.md,README} ; \
sed -r -e 's:\@PACKAGE\@:$(PACKAGE):g;s:\@VERSION\@:$(VERSION):g;s:\@DATE\@:$(DATE):g;s:\@BRANCH\@:$(BRANCH):g' $(distdir)/README.md.in >$(distdir)/README.md ; \
cat $(distdir)/README.md | fmt -sct -w80 -g72 >$(distdir)/README
ChangeLog:
$(AM_V_GEN)if test -x "`which git 2>/dev/null`" -a -d "$(srcdir)/.git" ; then \
( cd $(srcdir) ; \
echo -e "# created with git log --stat=76 -M -C -500|fmt -sct -w80\n" ; \
git log --stat=76 -M -C -500|fmt -sct -w80 \
)|head -10000>$@ ; \
else touch $@ ; fi
AUTHORS:
$(AM_V_GEN)if test -x "`which git 2>/dev/null`" -a -d "$(srcdir)/.git" ; then \
( cd $(srcdir) ; \
echo "$(PACKAGE) -- authors file. $(DATE)" ; \
echo "" ; \
git log|grep '^Author:'|awk '{if(!authors[$$0]){print$$0;authors[$$0]=1;}}' \
)>$@ ; \
else touch $@ ; fi
NEWS:
$(AM_V_GEN)if test -x "`which git 2>/dev/null`" -a -d "$(srcdir)/.git" ; then \
( cd $(srcdir) ; \
echo "$(PACKAGE) -- history of user-visible changes. $(DATE)" ; \
PACKAGE="$(PACKAGE)" $(srcdir)/gennews.sh \
)>$@ ; \
else touch $@ ; fi
README.md: README.md.in
$(AM_V_GEN)sed -r -e 's:\@PACKAGE\@:$(PACKAGE):g;s:\@VERSION\@:$(VERSION):g;s:\@DATE\@:$(DATE):g;s:\@BRANCH\@:$(BRANCH):g' $< >$@
README: README.md
$(AM_V_GEN)cat $< | fmt -sct -w80 -g72 >$@
README.html: README.md
$(AM_V_GEN)$(MARKDOWN) $< >$@
README.txt: README.html
$(AM_V_GEN)$(LINKS) -dump -width 80 -nolist $< | sed -r -e 's,^[[:space:]]*,,' >$@
RELEASE: RELEASE.md
$(AM_V_GEN)cat $< | fmt -sct -w80 -g72 >$@
RELEASE.html: RELEASE.md
$(AM_V_GEN)$(MARKDOWN) $< >$@
RELEASE.txt: RELEASE.html
$(AM_V_GEN)$(LINKS) -dump -width 80 -nolist $< | sed -r -e 's,^[[:space:]]*,,' >$@
NOTES.html: NOTES
$(AM_V_GEN)$(ASCIIDOC) -o - $< >$@
TODO.html: TODO
$(AM_V_GEN)$(ASCIIDOC) -o - $< >$@
EXTRA_DIST += gettext.h