From ec346f1c39aa5569ec899d65ee5bba67a09ae2fc Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Fri, 31 Jan 2025 20:11:37 -0800 Subject: [PATCH] Update Makefile to not recreate zconf.h and zconf.h.cmakein. Both were removed as zconf.h.cmakein is no longer needed, and zconf.h is made from zconf.h.in. --- .gitignore | 1 + Makefile.in | 22 +++++++++++----------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/.gitignore b/.gitignore index a06fb109..cd4945c1 100644 --- a/.gitignore +++ b/.gitignore @@ -13,6 +13,7 @@ *.gcno *.gcov +zconf.h /example /example64 /examplesh diff --git a/Makefile.in b/Makefile.in index 5da4ace7..e86777f2 100644 --- a/Makefile.in +++ b/Makefile.in @@ -355,15 +355,15 @@ docs: zlib.3.pdf zlib.3.pdf: $(SRCDIR)zlib.3 groff -mandoc -f H -T ps $(SRCDIR)zlib.3 | ps2pdf - $@ -zconf.h.cmakein: $(SRCDIR)zconf.h.in - -@ TEMPFILE=zconfh_$$; \ - echo "/#define ZCONF_H/ a\\\\\n#cmakedefine Z_PREFIX\\\\\n#cmakedefine Z_HAVE_UNISTD_H\n" >> $$TEMPFILE &&\ - sed -f $$TEMPFILE $(SRCDIR)zconf.h.in > $@ &&\ - touch -r $(SRCDIR)zconf.h.in $@ &&\ - rm $$TEMPFILE - -zconf: $(SRCDIR)zconf.h.in - cp -p $(SRCDIR)zconf.h.in zconf.h +# zconf.h.cmakein: $(SRCDIR)zconf.h.in +# -@ TEMPFILE=zconfh_$$; \ +# echo "/#define ZCONF_H/ a\\\\\n#cmakedefine Z_PREFIX\\\\\n#cmakedefine Z_HAVE_UNISTD_H\n" >> $$TEMPFILE &&\ +# sed -f $$TEMPFILE $(SRCDIR)zconf.h.in > $@ &&\ +# touch -r $(SRCDIR)zconf.h.in $@ &&\ +# rm $$TEMPFILE +# +# zconf: $(SRCDIR)zconf.h.in +# cp -p $(SRCDIR)zconf.h.in zconf.h minizip-test: static cd contrib/minizip && { CC="$(CC)" CFLAGS="$(CFLAGS)" $(MAKE) test ; cd ../.. ; } @@ -384,8 +384,8 @@ clean: minizip-clean rm -f contrib/infback9/*.gcda contrib/infback9/*.gcno contrib/infback9/*.gcov maintainer-clean: distclean -distclean: clean zconf zconf.h.cmakein - rm -f Makefile zlib.pc configure.log +distclean: clean # zconf zconf.h.cmakein + rm -f Makefile zlib.pc configure.log zconf.h -@rm -f .DS_Store @if [ -f Makefile.in ]; then \ printf 'all:\n\t-@echo "Please use ./configure first. Thank you."\n' > Makefile ; \