summaryrefslogtreecommitdiff
path: root/examples/hellolibvirt
diff options
context:
space:
mode:
authorCole Robinson <crobinso@redhat.com>2016-01-09 18:03:56 -0500
committerCole Robinson <crobinso@redhat.com>2016-01-09 21:14:12 -0500
commitda176bf6b7564721ce6bd18776523a8ad77f4884 (patch)
tree6e648ad8138c4696a4a0d90c96a71b19b4412f55 /examples/hellolibvirt
parent03569fda63d6dd8cb5cd63c34eb23faf5193da74 (diff)
downloadlibvirt-da176bf6b7564721ce6bd18776523a8ad77f4884.tar.gz
examples: Use one top level makefile
Using one Makefile per example subdirectory essentially serializes 'make' calls. Convert to one example/Makefile that builds and distributes all the subdir files. This reduces example/ rebuild time from about 5.8 seconds to 1.5 seconds on my machine. One slight difference is that we no longer ship Makefile.am with the examples in the rpm. This was virtually useless anyways since the Makefile was very specific to libvirt infrastructure, so wasn't generically reusable anyways. Tested with 'make distcheck' and 'make rpm'
Diffstat (limited to 'examples/hellolibvirt')
-rw-r--r--examples/hellolibvirt/Makefile.am21
1 files changed, 0 insertions, 21 deletions
diff --git a/examples/hellolibvirt/Makefile.am b/examples/hellolibvirt/Makefile.am
deleted file mode 100644
index 55ea972c42..0000000000
--- a/examples/hellolibvirt/Makefile.am
+++ /dev/null
@@ -1,21 +0,0 @@
-## Copyright (C) 2005-2013 Red Hat, Inc.
-##
-## This library is free software; you can redistribute it and/or
-## modify it under the terms of the GNU Lesser General Public
-## License as published by the Free Software Foundation; either
-## version 2.1 of the License, or (at your option) any later version.
-##
-## This library is distributed in the hope that it will be useful,
-## but WITHOUT ANY WARRANTY; without even the implied warranty of
-## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-## Lesser General Public License for more details.
-##
-## You should have received a copy of the GNU Lesser General Public
-## License along with this library. If not, see
-## <http://www.gnu.org/licenses/>.
-
-INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)
-noinst_PROGRAMS = hellolibvirt
-hellolibvirt_CFLAGS = $(WARN_CFLAGS)
-hellolibvirt_SOURCES = hellolibvirt.c
-hellolibvirt_LDADD = $(top_builddir)/src/libvirt.la