]> xenbits.xensource.com Git - libvirt.git/commitdiff
build: Remove unnecessarily repeated rules for syms -> def
authorMartin Kletzander <mkletzan@redhat.com>
Thu, 21 May 2015 23:39:26 +0000 (16:39 -0700)
committerMartin Kletzander <mkletzan@redhat.com>
Mon, 15 Jun 2015 15:12:59 +0000 (17:12 +0200)
Suggested-by: Michal Prívozník <mprivozn@redhat.com>
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
src/Makefile.am

index 0d1f58b980228b3fae6ffbde661e59c50efb163b..a9ebb07b1d3214be98458992871dc9af81f1b3c0 100644 (file)
@@ -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 =