[gnutls-devel] GnuTLS | build: remove src/*.bak from distribution (!808)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Thu Nov 15 17:46:21 CET 2018


Daiki Ueno commented on a discussion on src/Makefile.am:

> -		cp -p $${srcdir}$${b}.c.bak $${b}.c; \
> -		cp -p $${srcdir}$${b}.h.bak $${b}.h; \
> -	} && \
> -	touch $@
> -
> -.c.c.bak:
> +args-std.def: args-std.def.in
>  	$(AM_V_GEN) srcdir=''; \
> -		test -f ./$@ || srcdir=$(srcdir)/; \
> -		test -f $${srcdir}/$@ || cp -p $< $@
> +		test -f ./$@.in || srcdir=$(srcdir)/; \
> +		sed \
> +		-e 's|@VERSION[@]|$(VERSION)|g' \
> +		-e 's|@YEAR[@]|$(YEAR)|g' \
> +		-e 's|@PACKAGE_BUGREPORT[@]|$(PACKAGE_BUGREPORT)|g' \
> +		$${srcdir}$@.in > $@.tmp && mv $@.tmp $@

Yes, the reason why I moved this back to `make` phase is that, `*.stamp` files (now included in the tarball) depend on args-std.def.  If it was generated by configure, its timestamp would be always newer than `*.stamp` and thus autogen-regeneration would be triggered.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/808#note_117610971
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20181115/72547fa2/attachment-0001.html>


More information about the Gnutls-devel mailing list