diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2018-02-06 15:38:51 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2018-02-06 15:38:51 +0100 |
commit | 3d10fce4625bc2c950235b35a23a9ffe188bfbb2 (patch) | |
tree | b86b27c0092377a62de56c216e9f6f8e75b84174 /lib | |
parent | a0409f72766d63f7eeae9e1962815151da6f01a7 (diff) | |
download | gnutls-3d10fce4625bc2c950235b35a23a9ffe188bfbb2.tar.gz |
sed: use it in a portable way in makefiles
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Makefile.am | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Makefile.am b/lib/Makefile.am index 9921979942..ec03222b66 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -239,5 +239,7 @@ gnutls_asn1_tab.c: $(srcdir)/gnutls.asn -asn1Parser $(srcdir)/gnutls.asn gnutls_asn1_tab.c priority_options.h: $(srcdir)/priority_options.gperf - -gperf --global-table -t $^ > $@-tmp && sed -i 's/^const struct priority_options_st \*/static const struct priority_options_st \*/' $@-tmp && mv $@-tmp $@ + -gperf --global-table -t $^ > $@-tmp \ + && sed 's/^const struct priority_options_st \*/static const struct priority_options_st \*/' <$@-tmp >$@ \ + && rm -f $@-tmp |