2009-04-19 15:10:45 +00:00
2009-09-16 12:01:53 +01:00
POD2MAN = pod2man -c "Virtualization Support" -r " $( PACKAGE) - $( VERSION) "
ICON_FILES = \
libvirt_win_icon_16x16.ico \
libvirt_win_icon_32x32.ico \
libvirt_win_icon_48x48.ico \
libvirt_win_icon_64x64.ico \
virsh_win_icon.rc
2009-09-16 14:42:57 +01:00
EXTRA_DIST = $( ICON_FILES) virt-xml-validate.in virt-pki-validate.in virsh.pod
2009-09-16 12:01:53 +01:00
2009-09-16 14:42:57 +01:00
bin_SCRIPTS = virt-xml-validate virt-pki-validate
2009-09-16 12:01:53 +01:00
bin_PROGRAMS = virsh
2009-09-16 14:42:57 +01:00
man1_MANS = virt-xml-validate.1 virt-pki-validate.1 virsh.1
2009-09-16 12:01:53 +01:00
2009-04-19 15:10:45 +00:00
virt-xml-validate : virt -xml -validate .in Makefile
sed -e 's,@SCHEMADIR@,$(pkgdatadir)/schemas,' < $< > $@ || ( rm $@ && exit 1)
chmod +x $@
2009-09-16 12:01:53 +01:00
virt-xml-validate.1 : virt -xml -validate
$( POD2MAN) $< $@
2009-09-16 14:42:57 +01:00
virt-pki-validate : virt -pki -validate .in Makefile
sed -e 's,@SYSCONFDIR@,$(sysconfdir),' < $< > $@ || ( rm $@ && exit 1)
chmod +x $@
2009-09-16 12:01:53 +01:00
2009-09-16 14:42:57 +01:00
virt-pki-validate.1 : virt -pki -validate
$( POD2MAN) $< $@
2009-09-16 12:01:53 +01:00
virsh_SOURCES = \
console.c console.h \
virsh.c
virsh_LDFLAGS = $( WARN_CFLAGS) $( COVERAGE_LDFLAGS)
virsh_LDADD = \
$( STATIC_BINARIES) \
$( WARN_CFLAGS) \
../src/libvirt.la \
../gnulib/lib/libgnu.la \
$( VIRSH_LIBS)
virsh_CFLAGS = \
-I$( top_srcdir) /gnulib/lib -I../gnulib/lib \
2009-10-01 16:55:09 +02:00
-I../include -I$( top_srcdir) /include \
Move all shared utility files to src/util/
* src/bridge.c, src/bridge.h, src/buf.c, src/buf.h, src/cgroup.c,
src/cgroup.h, src/conf.c, src/conf.h, src/event.c, src/event.h,
src/hash.c, src/hash.h, src/hostusb.c, src/hostusb.h,
src/iptables.c, src/iptables.h, src/logging.c, src/logging.h,
src/memory.c, src/memory.h, src/pci.c, src/pci.h, src/qparams.c,
src/qparams.h, src/stats_linux.c, src/stats_linux.h,
src/threads-pthread.c, src/threads-pthread.h, src/threads-win32.c,
src/threads-win32.h, src/threads.c, src/threads.h, src/util.c,
src/util.h, src/uuid.c, src/uuid.h, src/virterror.c,
src/virterror_internal.h, src/xml.c, src/xml.h: Move all files
into src/util/
* daemon/Makefile.am: Add -Isrc/util/ to build flags
* src/Makefile.am: Add -Isrc/util/ to build flags and update for
moved files
* src/libvirt_private.syms: Export cgroup APIs since they're now
in util rather than linking directly to drivers
* src/xen/xs_internal.c: Disable bogus virEventRemoveHandle call
when built under PROXY
* proxy/Makefile.am: Update for changed file locations. Remove
bogus build of event.c
* tools/Makefile.am, tests/Makefile.am: Add -Isrc/util/ to build flags
2009-09-16 16:28:46 +01:00
-I$( top_srcdir) /src \
-I$( top_srcdir) /src/util \
2009-09-16 12:01:53 +01:00
-DGETTEXT_PACKAGE= \" $( PACKAGE) \" \
-DLOCALEBASEDIR= \" " $( datadir) /locale " \" \
$( COVERAGE_CFLAGS) \
$( LIBXML_CFLAGS) \
$( READLINE_CFLAGS)
BUILT_SOURCES = virsh-net-edit.c virsh-pool-edit.c
virsh-net-edit.c : virsh .c Makefile .am
rm -f $@ -tmp
echo '/* Automatically generated from: $^ */' > $@ -tmp
echo 'static int' >> $@ -tmp
awk '/^cmdEdit/, /^}/' $< \
| sed -e 's/domain/network/g' \
-e 's/Domain/Network/g' \
-e 's/cmdEdit/cmdNetworkEdit/g' \
-e 's/dom/network/g' \
-e 's/int flags.*/int flags = 0;/g' \
>> $@ -tmp
chmod a-w $@ -tmp
rm -f $@
mv $@ -tmp $@
virsh-pool-edit.c : virsh .c Makefile .am
rm -f $@ -tmp
echo '/* Automatically generated from: $^ */' > $@ -tmp
echo 'static int' >> $@ -tmp
awk '/^cmdEdit/, /^}/' $< \
| sed -e 's/domain/pool/g' \
-e 's/vshCommandOptDomain/vshCommandOptPool/g' \
-e 's/Domain %s/Pool %s/g' \
-e 's/(ctl, cmd, NULL);/(ctl, cmd, "pool", NULL);/' \
-e 's/Domain/StoragePool/g' \
-e 's/cmdEdit/cmdPoolEdit/g' \
-e 's/\(virStoragePoolDefineXML.*\));/\1, 0);/' \
-e 's/dom/pool/g' \
-e 's/int flags.*/int flags = 0;/g' \
>> $@ -tmp
chmod a-w $@ -tmp
rm -f $@
mv $@ -tmp $@
i f W I T H _ W I N _ I C O N
virsh_LDADD += virsh_win_icon.$( OBJEXT)
# Before you edit virsh_win_icon.rc, please note the following
# limitations of the resource file format:
#
# (1) '..' is not permitted in the icon filename field.
# (2) '-' is not permitted in the icon filename field.
# (3) Comments are not permitted in the file.
#
# Windows appears to choose the first <= 32x32 icon it finds
# in the resource file. Therefore you should list the available
# icons from largest to smallest, and make sure that the 32x32
# icon is the most legible.
#
# Windows .ICO is a special MS-only format. GIMP and other
# tools can write it. However there are several variations,
# and Windows seems to do its own colour quantization. More
# information is needed in this area.
virsh_win_icon.$(OBJEXT) : virsh_win_icon .rc
$( WINDRES) \
--input-format rc --input $< \
--output-format coff --output $@
e n d i f
virsh.1 : virsh .pod
$( POD2MAN) $< $@
2009-04-19 15:10:45 +00:00
CLEANFILES = $( bin_SCRIPTS) $( man1_MANS)
2009-09-16 12:01:53 +01:00
DISTCLEANFILES = $( BUILT_SOURCES)