diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-01-05 13:42:21 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-01-05 17:15:09 +0300 |
commit | a50dd9ccbe078b6e46f0ca9b9febce8889927f5d (patch) | |
tree | cffff186b72f31d410ce2f31dae789dd271ae486 | |
parent | 2ebde2cb71757ff450a824cb12ead55cfbe86916 (diff) | |
download | libmicrohttpd-a50dd9ccbe078b6e46f0ca9b9febce8889927f5d.tar.gz libmicrohttpd-a50dd9ccbe078b6e46f0ca9b9febce8889927f5d.zip |
Makefile: added trick to use pre-dist-hook
-rw-r--r-- | Makefile.am | 19 |
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 | ||
44 | EXTRA_DIST = \ | 44 | EXTRA_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 | ||
48 | pkgconfigdir = $(libdir)/pkgconfig | 49 | pkgconfigdir = $(libdir)/pkgconfig |
49 | pkgconfig_DATA = libmicrohttpd.pc | 50 | pkgconfig_DATA = libmicrohttpd.pc |
51 | |||
52 | EXTRA_DIST += pre-dist-hook-dummy | ||
53 | MOSTLYCLEANFILES = pre-dist-hook-dummy | ||
54 | |||
55 | pre-dist-hook-dummy: pre-dist-hook Makefile | ||
56 | @echo "dummy" > $@ | ||
57 | |||
58 | dist-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 | |||
63 | pre-dist-hook: | ||
64 | @echo "Preparing to make dist" | ||
65 | |||
66 | .PHONY: pre-dist-hook \ No newline at end of file | ||