gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] 08/14: Makefile: added trick to use pre-dist-hook


From: gnunet
Subject: [libmicrohttpd] 08/14: Makefile: added trick to use pre-dist-hook
Date: Thu, 06 Jan 2022 17:07:31 +0100

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit a50dd9ccbe078b6e46f0ca9b9febce8889927f5d
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Wed Jan 5 13:42:21 2022 +0300

    Makefile: added trick to use pre-dist-hook
---
 Makefile.am | 19 ++++++++++++++++++-
 1 file changed, 18 insertions(+), 1 deletion(-)

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
 
 EXTRA_DIST = \
   libmicrohttpd.pc.in \
-  $(W32COMMON) $(W32VS2013) $(W32VS2015) $(W32VS2017) $(W32VS2019) 
$(W32VS2022) $(W32VSAV)
+  $(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
+
+pre-dist-hook-dummy: pre-dist-hook Makefile
+       @echo "dummy" > $@
+
+dist-hook:
+       @chmod u+w '$(distdir)/pre-dist-hook-dummy' && \
+         rm -f '$(distdir)/pre-dist-hook-dummy'
+       @rm -f pre-dist-hook-dummy
+
+pre-dist-hook:
+       @echo "Preparing to make dist"
+
+.PHONY: pre-dist-hook
\ No newline at end of file

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]