summaryrefslogtreecommitdiff
path: root/lib/Makefile.am
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2017-08-20 00:18:44 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2017-08-20 16:39:14 +0200
commit9009ba6511733c3ea96519ef8023c19828965bd2 (patch)
tree29e9e4fbab9de7afa9d170c263c650551c8ca0ba /lib/Makefile.am
parent12897fd34dbd37a77e4adb60750344e451c44679 (diff)
downloadgnutls-9009ba6511733c3ea96519ef8023c19828965bd2.tar.gz
sed: use it in a portable way in makefiles
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Diffstat (limited to 'lib/Makefile.am')
-rw-r--r--lib/Makefile.am6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Makefile.am b/lib/Makefile.am
index 9e22bb92cf..3ea1c6cebb 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -222,6 +222,6 @@ 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