testHeaders copies the 'true' binary to a file named testHeaders relying
on the fact that GNU's true always exits 0. When 'true' implementation
is a multicall binary (e.g., in rust-coreutils and on Alpine Linux), it
cannot be called by other name. Create an empty executable file instead.
squid-conf-tests also copied the 'true' binary, but that Makefile target
is never executed and, hence, should not create an executable file.
Regents of the University of California (UCSD)
Reinhard Posmyk <Reinhard.Posmyk@arxes.de>
Reinhard Sojka <reinhard.sojka@parlament.gv.at>
+ Renan Rodrigo <rr@ubuntu.com>
Rene Geile <rene.geile@t-online.de>
Reuben Farrelly <reuben@reub.net>
Ricardo Ferreira Ribeiro <garb12@pm.me>
# headers to test
testHeaders: $(SOURCES) $(noinst_HEADERS) $(EXTRA_DIST) $(top_srcdir)/test-suite/testHeader.cc.in
- $(MAKE) $(^:.h=.hdrtest) && cp $(TRUE) $@
+ $(MAKE) $(^:.h=.hdrtest) && touch $@ && $(CHMOD) +x $@
.h.hdrtest:
@SrcFilePath=`echo $< | $(SED) 's%^$(top_srcdir)/%%'`; \
sed s%$(srcdir)/squidconf/%% ; \
else break; fi; \
done; \
- if test "$$failed" -eq 0; then cp $(TRUE) $@ ; else exit 1; fi
+ if test "$$failed" -eq 0; then touch $@ ; else exit 1; fi
CLEANFILES += \
squid-conf-tests \