diff options
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 88 |
1 files changed, 82 insertions, 6 deletions
diff --git a/Makefile.am b/Makefile.am index 72c8b864..4bbf92e7 100644 --- a/Makefile.am +++ b/Makefile.am | |||
@@ -2,10 +2,6 @@ | |||
2 | ACLOCAL_AMFLAGS = -I m4 | 2 | ACLOCAL_AMFLAGS = -I m4 |
3 | SUBDIRS = contrib m4 src . | 3 | SUBDIRS = contrib m4 src . |
4 | 4 | ||
5 | if HAVE_PO | ||
6 | SUBDIRS += po | ||
7 | endif | ||
8 | |||
9 | if BUILD_DOC | 5 | if BUILD_DOC |
10 | SUBDIRS += doc | 6 | SUBDIRS += doc |
11 | endif | 7 | endif |
@@ -51,11 +47,13 @@ pkgconfig_DATA = libmicrohttpd.pc | |||
51 | 47 | ||
52 | EXTRA_DIST += pre-dist-hook-dummy | 48 | EXTRA_DIST += pre-dist-hook-dummy |
53 | MOSTLYCLEANFILES = pre-dist-hook-dummy | 49 | MOSTLYCLEANFILES = pre-dist-hook-dummy |
50 | DISTCLEANFILES = | ||
51 | MAINTAINERCLEANFILES = | ||
54 | 52 | ||
55 | pre-dist-hook-dummy: pre-dist-hook Makefile | 53 | pre-dist-hook-dummy: pre-dist-hook Makefile |
56 | @echo "dummy" > $@ | 54 | @echo "dummy" > $@ |
57 | 55 | ||
58 | dist-hook: | 56 | dist-hook: dist-po |
59 | @chmod u+w '$(distdir)/pre-dist-hook-dummy' && \ | 57 | @chmod u+w '$(distdir)/pre-dist-hook-dummy' && \ |
60 | rm -f '$(distdir)/pre-dist-hook-dummy' | 58 | rm -f '$(distdir)/pre-dist-hook-dummy' |
61 | @rm -f pre-dist-hook-dummy | 59 | @rm -f pre-dist-hook-dummy |
@@ -64,4 +62,82 @@ pre-dist-hook: | |||
64 | @echo "Preparing to make dist" | 62 | @echo "Preparing to make dist" |
65 | @$(am__cd) doc && $(MAKE) $(AM_MAKEFLAGS) update-stamp | 63 | @$(am__cd) doc && $(MAKE) $(AM_MAKEFLAGS) update-stamp |
66 | 64 | ||
67 | .PHONY: pre-dist-hook \ No newline at end of file | 65 | .PHONY: pre-dist-hook |
66 | |||
67 | distclean-local: distclean-po | ||
68 | |||
69 | maintainer-clean-local: maintainer-clean-po | ||
70 | |||
71 | PO_ACLOCAL_M4 = $(top_srcdir)/po/aclocal.m4 | ||
72 | |||
73 | PO_M4_FILES = $(top_srcdir)/po/m4/gettext.m4 $(top_srcdir)/po/m4/host-cpu-c-abi.m4 \ | ||
74 | $(top_srcdir)/po/m4/iconv.m4 $(top_srcdir)/po/m4/intlmacosx.m4 \ | ||
75 | $(top_srcdir)/po/m4/lib-ld.m4 $(top_srcdir)/po/m4/lib-link.m4 \ | ||
76 | $(top_srcdir)/po/m4/lib-prefix.m4 $(top_srcdir)/po/m4/nls.m4 \ | ||
77 | $(top_srcdir)/po/m4/po.m4 $(top_srcdir)/po/m4/progtest.m4 | ||
78 | |||
79 | am__po_aclocal_m4_deps = $(PO_M4_FILES) $(top_srcdir)/po/configure.ac | ||
80 | am__po_configure_deps = $(am__po_aclocal_m4_deps) $(PO_ACLOCAL_M4) | ||
81 | |||
82 | $(PO_ACLOCAL_M4): $(am__po_aclocal_m4_deps) | ||
83 | @echo "Building $@" | ||
84 | $(am__cd) '$(top_srcdir)/po' && $(ACLOCAL) $(ACLOCAL_AMFLAGS) | ||
85 | |||
86 | # Do update po/configure.ac only if template files updated | ||
87 | $(top_srcdir)/po/configure.ac: $(top_srcdir)/po/po-configure.ac.in $(top_srcdir)/configure.ac | ||
88 | @echo "Building $@" | ||
89 | @$(am__cd) '$(top_builddir)' && $(MAKE) $(AM_MAKEFLAGS) po/po-configure.ac | ||
90 | @rm -f '$@' && cp -f po/po-configure.ac '$@' | ||
91 | |||
92 | $(top_srcdir)/po-configure: $(top_srcdir)/po/configure.ac $(PO_ACLOCAL_M4) | ||
93 | @echo "Building $@" | ||
94 | @$(am__cd) '$(top_srcdir)/po' && $(AUTOCONF) | ||
95 | @mv -f '$(top_srcdir)/po/configure' '$@' | ||
96 | |||
97 | po-config.status: $(top_srcdir)/po-configure | ||
98 | @if test -f config.log; then \ | ||
99 | mv -f config.log config.main.log; \ | ||
100 | else \ | ||
101 | true; \ | ||
102 | fi | ||
103 | @SHELL@ '$(top_srcdir)/po-configure' $(ac_configure_args) --silent --no-create --no-recursion --disable-option-checking | ||
104 | @mv -f config.log po-config.log | ||
105 | @if test -f config.main.log; then \ | ||
106 | mv -f config.main.log config.log; \ | ||
107 | else \ | ||
108 | true; \ | ||
109 | fi | ||
110 | |||
111 | po/Makefile: $(top_srcdir)/po/Makefile.in.in $(top_srcdir)/po/Makevars $(top_builddir)/po-config.status $(top_srcdir)/po/POTFILES.in | ||
112 | @$(am__cd) $(top_builddir) \ | ||
113 | && @SHELL@ ./po-config.status po/Makefile.in po-directories | ||
114 | |||
115 | dist-po: po/Makefile | ||
116 | @dir1="po"; dir2="$(distdir)/po"; \ | ||
117 | $(am__relativize); \ | ||
118 | rel_distsubdir=$$reldir; \ | ||
119 | echo "cd po && $(MAKE) $(AM_MAKEFLAGS) distdir='$$rel_distsubdir' distdir" && \ | ||
120 | $(am__cd) po && $(MAKE) $(AM_MAKEFLAGS) distdir="$$rel_distsubdir" distdir | ||
121 | |||
122 | EXTRA_DIST += $(am__po_configure_deps) $(top_srcdir)/po/po-configure.ac.in $(top_srcdir)/po-configure | ||
123 | DISTCLEANFILES += config.main.log po-config.log | ||
124 | |||
125 | distclean-po: | ||
126 | @if test -f po/Makefile; then \ | ||
127 | $(am__cd) po && $(MAKE) $(AM_MAKEFLAGS) distclean; \ | ||
128 | else \ | ||
129 | true; \ | ||
130 | fi | ||
131 | -rm -f po-config.status po/Makefile | ||
132 | -rm -f po/POTFILES po/remove-potcdate.sed po/Makefile.in | ||
133 | |||
134 | maintainer-clean-po: | ||
135 | @if test -f po/Makefile; then \ | ||
136 | $(am__cd) po && $(MAKE) $(AM_MAKEFLAGS) maintainer-clean; \ | ||
137 | else \ | ||
138 | true; \ | ||
139 | fi | ||
140 | -rm -f po/$(PACKAGE_TARNAME).pot po/stamp-po | ||
141 | -rm -rf $(top_srcdir)/po/autom4te.cache | ||
142 | |||
143 | .PHONY: distclean-po maintainer-clean-po | ||