aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-01-05 13:42:21 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-01-05 17:15:09 +0300
commita50dd9ccbe078b6e46f0ca9b9febce8889927f5d (patch)
treecffff186b72f31d410ce2f31dae789dd271ae486
parent2ebde2cb71757ff450a824cb12ead55cfbe86916 (diff)
downloadlibmicrohttpd-a50dd9ccbe078b6e46f0ca9b9febce8889927f5d.tar.gz
libmicrohttpd-a50dd9ccbe078b6e46f0ca9b9febce8889927f5d.zip
Makefile: added trick to use pre-dist-hook
-rw-r--r--Makefile.am19
1 files changed, 18 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 6180b119..02d94bf3 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -43,7 +43,24 @@ W32VSAV = w32/VS-Any-Version/libmicrohttpd.vcxproj w32/VS-Any-Version/libmicroht
43 43
44EXTRA_DIST = \ 44EXTRA_DIST = \
45 libmicrohttpd.pc.in \ 45 libmicrohttpd.pc.in \
46 $(W32COMMON) $(W32VS2013) $(W32VS2015) $(W32VS2017) $(W32VS2019) $(W32VS2022) $(W32VSAV) 46 $(W32COMMON) $(W32VS2013) $(W32VS2015) $(W32VS2017) \
47 $(W32VS2019) $(W32VS2022) $(W32VSAV)
47 48
48pkgconfigdir = $(libdir)/pkgconfig 49pkgconfigdir = $(libdir)/pkgconfig
49pkgconfig_DATA = libmicrohttpd.pc 50pkgconfig_DATA = libmicrohttpd.pc
51
52EXTRA_DIST += pre-dist-hook-dummy
53MOSTLYCLEANFILES = pre-dist-hook-dummy
54
55pre-dist-hook-dummy: pre-dist-hook Makefile
56 @echo "dummy" > $@
57
58dist-hook:
59 @chmod u+w '$(distdir)/pre-dist-hook-dummy' && \
60 rm -f '$(distdir)/pre-dist-hook-dummy'
61 @rm -f pre-dist-hook-dummy
62
63pre-dist-hook:
64 @echo "Preparing to make dist"
65
66.PHONY: pre-dist-hook \ No newline at end of file