aboutsummaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am88
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 @@
2ACLOCAL_AMFLAGS = -I m4 2ACLOCAL_AMFLAGS = -I m4
3SUBDIRS = contrib m4 src . 3SUBDIRS = contrib m4 src .
4 4
5if HAVE_PO
6SUBDIRS += po
7endif
8
9if BUILD_DOC 5if BUILD_DOC
10SUBDIRS += doc 6SUBDIRS += doc
11endif 7endif
@@ -51,11 +47,13 @@ pkgconfig_DATA = libmicrohttpd.pc
51 47
52EXTRA_DIST += pre-dist-hook-dummy 48EXTRA_DIST += pre-dist-hook-dummy
53MOSTLYCLEANFILES = pre-dist-hook-dummy 49MOSTLYCLEANFILES = pre-dist-hook-dummy
50DISTCLEANFILES =
51MAINTAINERCLEANFILES =
54 52
55pre-dist-hook-dummy: pre-dist-hook Makefile 53pre-dist-hook-dummy: pre-dist-hook Makefile
56 @echo "dummy" > $@ 54 @echo "dummy" > $@
57 55
58dist-hook: 56dist-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
67distclean-local: distclean-po
68
69maintainer-clean-local: maintainer-clean-po
70
71PO_ACLOCAL_M4 = $(top_srcdir)/po/aclocal.m4
72
73PO_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
79am__po_aclocal_m4_deps = $(PO_M4_FILES) $(top_srcdir)/po/configure.ac
80am__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
97po-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
111po/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
115dist-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
122EXTRA_DIST += $(am__po_configure_deps) $(top_srcdir)/po/po-configure.ac.in $(top_srcdir)/po-configure
123DISTCLEANFILES += config.main.log po-config.log
124
125distclean-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
134maintainer-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