summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Kletzander <mkletzan@redhat.com>2015-05-21 16:39:26 -0700
committerMartin Kletzander <mkletzan@redhat.com>2015-06-15 17:12:59 +0200
commit5e55534b9ab4e1c09085e67e20f46780d1132e27 (patch)
tree8e9c696a76dade77b4e65e76bff8d04ee3080c58
parent840eca32aba4f67e3d4473aae5b075062bc49006 (diff)
downloadlibvirt-5e55534b9ab4e1c09085e67e20f46780d1132e27.tar.gz
build: Remove unnecessarily repeated rules for syms -> def
Suggested-by: Michal Prívozník <mprivozn@redhat.com> Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
-rw-r--r--src/Makefile.am20
1 files changed, 2 insertions, 18 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 0d1f58b980..a9ebb07b1d 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -2003,29 +2003,13 @@ libvirt.syms: libvirt_public.syms $(USED_SYM_FILES) \
chmod a-w $@-tmp && \
mv $@-tmp libvirt.syms
-libvirt.def: libvirt.syms
+%.def: %.syms
$(AM_V_GEN)rm -f -- $@-tmp $@ ; \
printf 'EXPORTS\n' > $@-tmp && \
sed -e '/^$$/d; /#/d; /:/d; /}/d; /\*/d; /LIBVIRT_/d' \
-e 's/[ ]*\(.*\)\;/ \1/g' $^ >> $@-tmp && \
chmod a-w $@-tmp && \
- mv $@-tmp libvirt.def
-
-libvirt_qemu.def: $(srcdir)/libvirt_qemu.syms
- $(AM_V_GEN)rm -f -- $@-tmp $@ ; \
- printf 'EXPORTS\n' > $@-tmp && \
- sed -e '/^$$/d; /#/d; /:/d; /}/d; /\*/d; /LIBVIRT_/d' \
- -e 's/[ ]*\(.*\)\;/ \1/g' $^ >> $@-tmp && \
- chmod a-w $@-tmp && \
- mv $@-tmp libvirt_qemu.def
-
-libvirt_lxc.def: $(srcdir)/libvirt_lxc.syms
- $(AM_V_GEN)rm -f -- $@-tmp $@ ; \
- printf 'EXPORTS\n' > $@-tmp && \
- sed -e '/^$$/d; /#/d; /:/d; /}/d; /\*/d; /LIBVIRT_/d' \
- -e 's/[ ]*\(.*\)\;/ \1/g' $^ >> $@-tmp && \
- chmod a-w $@-tmp && \
- mv $@-tmp libvirt_lxc.def
+ mv $@-tmp $@
# Empty source list - it merely links a bunch of convenience libs together
libvirt_la_SOURCES =