aboutsummaryrefslogtreecommitdiff
path: root/Makefile.am
blob: 91f58ad4bf657ffba93dfcc4800f682ddd8b5b1e (plain) (blame)
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
# This Makefile.am is in the public domain
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = contrib m4 src .

if BUILD_DOC
SUBDIRS += doc
endif


W32COMMON = w32/common/gen_dll_res.ps1 w32/common/microhttpd_dll_res_vc.rc.in w32/common/microhttpd_dll_res_vc.rc \
  w32/common/MHD_config.h w32/common/vs_dirs.props w32/common/common-build-settings.vcxproj \
  w32/common/libmicrohttpd-build-settings.vcxproj w32/common/libmicrohttpd-files.vcxproj w32/common/libmicrohttpd-filters.vcxproj \
  w32/common/hellobrowser-files.vcxproj w32/common/hellobrowser-filters.vcxproj \
  w32/common/apps-build-settings.vcxproj
W32VS2013 = w32/VS2013/libmicrohttpd.vcxproj w32/VS2013/libmicrohttpd.vcxproj.filters \
  w32/VS2013/hellobrowser.vcxproj w32/VS2013/hellobrowser.vcxproj.filters \
  w32/VS2013/simplepost.vcxproj w32/VS2013/largepost.vcxproj \
  w32/VS2013/libmicrohttpd.sln
W32VS2015 = w32/VS2015/libmicrohttpd.vcxproj w32/VS2015/libmicrohttpd.vcxproj.filters \
  w32/VS2015/hellobrowser.vcxproj w32/VS2015/hellobrowser.vcxproj.filters \
  w32/VS2015/simplepost.vcxproj w32/VS2015/largepost.vcxproj \
  w32/VS2015/libmicrohttpd.sln
W32VS2017 = w32/VS2017/libmicrohttpd.vcxproj w32/VS2017/libmicrohttpd.vcxproj.filters \
  w32/VS2017/hellobrowser.vcxproj w32/VS2017/hellobrowser.vcxproj.filters \
  w32/VS2017/simplepost.vcxproj w32/VS2017/largepost.vcxproj \
  w32/VS2017/libmicrohttpd.sln
W32VS2019 = w32/VS2019/libmicrohttpd.vcxproj w32/VS2019/libmicrohttpd.vcxproj.filters \
  w32/VS2019/hellobrowser.vcxproj w32/VS2019/hellobrowser.vcxproj.filters \
  w32/VS2019/simplepost.vcxproj w32/VS2019/largepost.vcxproj \
  w32/VS2019/libmicrohttpd.sln
W32VS2022 = w32/VS2022/libmicrohttpd.vcxproj w32/VS2022/libmicrohttpd.vcxproj.filters \
  w32/VS2022/hellobrowser.vcxproj w32/VS2022/hellobrowser.vcxproj.filters \
  w32/VS2022/simplepost.vcxproj w32/VS2022/largepost.vcxproj \
  w32/VS2022/libmicrohttpd.sln
W32VSAV = w32/VS-Any-Version/libmicrohttpd.vcxproj w32/VS-Any-Version/libmicrohttpd.vcxproj.filters \
  w32/VS-Any-Version/hellobrowser.vcxproj w32/VS-Any-Version/hellobrowser.vcxproj.filters \
  w32/VS-Any-Version/simplepost.vcxproj w32/VS-Any-Version/largepost.vcxproj \
  w32/VS-Any-Version/libmicrohttpd.sln

EXTRA_DIST = \
  libmicrohttpd.pc.in \
  $(W32COMMON) $(W32VS2013) $(W32VS2015) $(W32VS2017) \
  $(W32VS2019) $(W32VS2022) $(W32VSAV)

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libmicrohttpd.pc

EXTRA_DIST += pre-dist-hook-dummy
MOSTLYCLEANFILES = pre-dist-hook-dummy
DISTCLEANFILES = 
MAINTAINERCLEANFILES = 

pre-dist-hook-dummy: pre-dist-hook Makefile
	@echo "dummy" > $@

dist-hook: dist-po
	@chmod u+w '$(distdir)/pre-dist-hook-dummy' && \
	  rm -f '$(distdir)/pre-dist-hook-dummy'
	@rm -f pre-dist-hook-dummy

pre-dist-hook: pre-dist-hook-doc
	@echo "Preparing to make dist"

pre-dist-hook-doc:
	@echo "Preparing to make dist in doc"
	@if test -w '$(top_srcdir)/doc' ; then \
	  $(am__cd) doc && $(MAKE) $(AM_MAKEFLAGS) update-stamp; \
	else \
	  echo "Source tree is read-only, skipping force doc update"; \
	fi;

.PHONY: pre-dist-hook pre-dist-hook-doc

distclean-local: distclean-po

maintainer-clean-local: maintainer-clean-po

PO_ACLOCAL_M4 = $(top_srcdir)/po/aclocal.m4

PO_M4_FILES = $(top_srcdir)/po/m4/gettext.m4 $(top_srcdir)/po/m4/host-cpu-c-abi.m4 \
  $(top_srcdir)/po/m4/iconv.m4 $(top_srcdir)/po/m4/intlmacosx.m4 \
  $(top_srcdir)/po/m4/lib-ld.m4 $(top_srcdir)/po/m4/lib-link.m4 \
  $(top_srcdir)/po/m4/lib-prefix.m4 $(top_srcdir)/po/m4/nls.m4 \
  $(top_srcdir)/po/m4/po.m4 $(top_srcdir)/po/m4/progtest.m4

am__po_aclocal_m4_deps = $(PO_M4_FILES) $(top_srcdir)/po/configure.ac
am__po_configure_deps = $(am__po_aclocal_m4_deps) $(PO_ACLOCAL_M4)

$(PO_ACLOCAL_M4): $(am__po_aclocal_m4_deps)
	@echo "Building $@"
	$(am__cd) '$(top_srcdir)/po' && $(ACLOCAL) $(ACLOCAL_AMFLAGS)

# Do update po/configure.ac only if template files updated
$(top_srcdir)/po/configure.ac: $(top_srcdir)/po/po-configure.ac.in $(top_srcdir)/configure.ac
	@echo "Building $@"
	@$(am__cd) '$(top_builddir)' && $(MAKE) $(AM_MAKEFLAGS) po/po-configure.ac
	@rm -f '$@' && cp -f po/po-configure.ac '$@'

$(top_srcdir)/po-configure: $(top_srcdir)/po/configure.ac $(PO_ACLOCAL_M4)
	@echo "Building $@"
	@$(am__cd) '$(top_srcdir)/po' && $(AUTOCONF)
	@mv -f '$(top_srcdir)/po/configure' '$@'

po-config.status: $(top_srcdir)/po-configure
	@if test -f config.log; then \
	  mv -f config.log config.main.log; \
	else \
	  true; \
	fi
	@SHELL@ '$(top_srcdir)/po-configure' $(ac_configure_args) --silent --no-create --no-recursion --disable-option-checking
	@mv -f config.log po-config.log
	@if test -f config.main.log; then \
	  mv -f config.main.log config.log; \
	else \
	  true; \
	fi

po/Makefile: $(top_srcdir)/po/Makefile.in.in $(top_srcdir)/po/Makevars $(top_builddir)/po-config.status $(top_srcdir)/po/POTFILES.in
	@$(am__cd) $(top_builddir) \
	  && @SHELL@ ./po-config.status po/Makefile.in po-directories

dist-po: po/Makefile
	@dir1="po"; dir2="$(distdir)/po"; \
	$(am__relativize); \
	rel_distsubdir=$$reldir; \
	echo "cd po && $(MAKE) $(AM_MAKEFLAGS) distdir='$$rel_distsubdir' distdir" && \
	$(am__cd) po && $(MAKE) $(AM_MAKEFLAGS) distdir="$$rel_distsubdir" distdir

$(top_srcdir)/po/POTFILES.in: $(top_srcdir)/src/microhttpd/Makefile.am
	@echo "cd src/microhttpd && $(MAKE) $(AM_MAKEFLAGS) update-po-POTFILES.in" && \
	$(am__cd) src/microhttpd && $(MAKE) $(AM_MAKEFLAGS) update-po-POTFILES.in

EXTRA_DIST += $(am__po_configure_deps) $(top_srcdir)/po/po-configure.ac.in $(top_srcdir)/po-configure
DISTCLEANFILES += config.main.log po-config.log

distclean-po:
	@if test -f po/Makefile; then \
	  $(am__cd) po && $(MAKE) $(AM_MAKEFLAGS) distclean; \
	else \
	  true; \
	fi
	-rm -f po-config.status po/Makefile
	-rm -f po/POTFILES po/remove-potcdate.sed po/Makefile.in

maintainer-clean-po:
	@if test -f po/Makefile; then \
	  $(am__cd) po && $(MAKE) $(AM_MAKEFLAGS) maintainer-clean; \
	else \
	  true; \
	fi
	-rm -f po/$(PACKAGE_TARNAME).pot po/stamp-po
	-rm -rf $(top_srcdir)/po/autom4te.cache

.PHONY: distclean-po maintainer-clean-po