-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
159 lines (112 loc) · 2.75 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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
# Process this file with automake to produce Makefile.in
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = \
src
dist_doc_DATA = \
AUTHORS \
COPYING \
ChangeLog \
NEWS \
README
EXTRA_DIST = \
ChangeLog.md \
INSTALL \
NEWS \
README.md \
autostuff \
bootstrap \
examples \
package.json \
.editorconfig
if DIST_DOCS_DIR
EXTRA_DIST += \
docs
endif DIST_DOCS_DIR
if NLS_ENABLED
SUBDIRS += \
po
else !NLS_ENABLED
EXTRA_DIST += \
po
endif !NLS_ENABLED
_clean_dirs_ = \
no-dist
# Shell expansion is supported here
_distclean_dirs_ = \
'po/backups'
# Shell expansion is supported here
_bootstrapclean_dirs_ = \
'autom4te.cache' \
'build-aux' \
'docs' \
'm4'
# Shell expansion is supported here
_bootstrapclean_files_ = \
*'~' \
'ABOUT-NLS' \
'aclocal.m4' \
'compile' \
'config'.* \
'configure' \
'depcomp' \
'install-sh' \
'libtool' \
'ltmain.sh' \
'missing' \
'po/@[email protected]' \
'po/boldquot.sed' \
'po/[email protected]' \
'po/[email protected]' \
'po/insert-header.sin' \
'po'/*'~' \
'po/Makefile.in.in' \
'po/Makevars.template' \
'po/quot.sed' \
'po/remove-potcdate.sin' \
'po/Rules-quot'
if HAVE_FIND
_bootstrapclean_dirs_ += \
`$(FIND) -L . -type d -name .deps`
_bootstrapclean_files_ += \
`$(FIND) -L . -type f -name 'Makefile.in'`
endif
# Remove `$(docdir)` on uninstall
uninstall-local:
-rm -r '$(DESTDIR)$(docdir)';
clean-local:
-rm -rf $(_clean_dirs_);
distclean-local:
-rm -rf $(_distclean_dirs_)
# Update translations
.PHONY: i18n-update
i18n-update:
@$(MKDIR_P) 'po/backups' && $(GREP) -o '^\s*\w\S\+' 'po/LINGUAS' | \
while read _i_; do cp "po/$${_i_}.po" "po/backups/$${_i_}.po.bak" && \
(! test -e "po/@[email protected]" || mv \
"po/@[email protected]" "po/backups/@[email protected]") \
&& $(MAKE) -C 'po' "$${_i_}.po" && sed -i \
's/"Project-Id-Version:.*$$/"Project-Id-Version: @PACKAGE_TARNAME@ @PACKAGE_VERSION@\\n"/' \
"po/$${_i_}.po"; done;
# Update translations with intltool, if this is present
.PHONY: intltool-update-all
intltool-update-all:
@(cd po && for _COIN in `grep -v '^#' < 'LINGUAS'`; do echo \
"Updating \"$${_COIN}\"..."; intltool-update "$${_COIN}"; done; rm -f \
*.pot);
if HAVE_DOXYGEN
# Generate the documentation in any case
.PHONY: redocs
redocs:
$(MKDIR_P) 'docs' && doxygen 'autostuff/doxygen/doxyfile.conf' && cp \
'autostuff/chunks/docs.index.html.in' 'docs/index.html';
# Generate the documentation if missing
docs:
$(MAKE) redocs;
endif HAVE_DOXYGEN
# Make the source directory depend on Autotools and a `bootstrap` script
.PHONY: bootstrap-clean
bootstrap-clean: maintainer-clean
-rm -rf $(_bootstrapclean_dirs_); rm -f $(_bootstrapclean_files_); \
(cd '$(srcdir)' && rm -rf $(_bootstrapclean_dirs_); \
rm -f $(_bootstrapclean_files_));
# EOF