forked from ice-wm/icewm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
127 lines (95 loc) · 3.82 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
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
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = src po doc man lib
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 - $< >$@
INSTALL.cmakebuild: INSTALL-cmakebuild.md
$(AM_V_GEN)cat $< | fmt -sct -w80 -g72 >$@
INSTALL-cmakebuild.html: INSTALL-cmakebuild.md
$(AM_V_GEN)$(MARKDOWN) $< >$@
INSTALL-cmakebuild.txt: INSTALL-cmakebuild.html
$(AM_V_GEN)links -dump -width 80 -codepage utf-8 $< >$@
EXTRA_DIST += \
INSTALL-cmakebuild.md \
INSTALL.cmakebuild \
CMakeLists.txt \
doc/CMakeLists.txt \
lib/CMakeLists.txt \
man/CMakeLists.txt \
po/CMakeLists.txt \
src/CMakeLists.txt \
src/config.cmake.h.in
EXTRA_DIST += COMPLIANCE
EXTRA_DIST += VERSION
DISTCLEANFILES += VERSION
VERSION:
$(AM_V_GEN)echo -e "PACKAGE=$(PACKAGE)\nVERSION=$(VERSION)" >$@
EXTRA_DIST += icewm.spec.in icewm.spec
DISTCLEANFILES += icewm.spec
icewm.spec: icewm.spec.in
$(AM_V_GEN)sed -r -e 's:%%PACKAGE%%:$(PACKAGE):g;s:%%VERSION%%:$(VERSION):g;s:%%DATE%%:$(DATE):g;s:%%BRANCH%%:$(BRANCH):g' $< >$@
dist_bin_SCRIPTS = \
icewm-set-gnomewm \
contrib/icewm-menu-xrandr
AM_INSTALLCHECK_STD_OPTIONS_EXEMPT = \
contrib/icewm-menu-xrandr