2013-01-21 15:09:37 +01:00
NULL =
CLEANFILES =
2013-05-01 10:21:25 +01:00
MANUFACTURER = Virt Manager Project
2012-01-27 14:51:36 +01:00
EXTRA_DIST = \
2012-02-06 14:22:42 +00:00
spice-xpi-client-remote-viewer \
2014-12-09 11:19:38 +01:00
adwaita-icons-needed.wxi.in \
2013-01-16 17:27:58 +01:00
virt-viewer.wxs.in \
2012-01-27 14:51:36 +01:00
virt-viewer.nsis.in \
2013-01-21 15:09:37 +01:00
virt-viewer-debug.nsis.in \
2012-01-27 14:51:36 +01:00
$( NULL)
2012-03-30 02:43:26 +02:00
2013-04-03 14:02:01 +02:00
# this make sure those files are regenerated when they change
# (in maintainer-mode)
2014-12-09 11:19:38 +01:00
all-local : adwaita -icons -needed .wxi virt -viewer .wxs virt -viewer .nsis virt -viewer -debug .nsis
2013-04-03 14:02:01 +02:00
2012-06-05 21:30:18 +02:00
i f O S _ W I N 3 2
2013-01-16 17:27:58 +01:00
2014-12-17 06:16:41 +01:00
i f H A V E _ L I B V I R T
HaveLibvirt = True
e l s e
HaveLibvirt = False
e n d i f
2014-12-17 06:21:33 +01:00
i f H A V E _ O V I R T
HaveOVirt = True
e l s e
HaveOVirt = False
e n d i f
2012-06-05 21:30:18 +02:00
deps.txt :
$( AM_V_GEN) rpm -qa | grep $( host_os) | sort | unix2dos > $@
virt-viewer-$(VERSION).exe : virt -viewer .nsis deps .txt
$( AM_V_GEN) DESTDIR = ` mktemp -d` && \
make -C $( top_builddir) install DESTDIR = $$ DESTDIR >/dev/null && \
2014-12-09 00:40:30 +01:00
makensis -NOCD -DDESTDIR= $$ DESTDIR -DGTK_VERSION= $( GTK_API_VERSION) $< >/dev/null && \
2012-06-05 21:30:18 +02:00
rm -rf $$ DESTDIR
2013-05-17 16:51:14 +02:00
virt-viewer-debug-$(VERSION).exe : virt -viewer -debug .nsis
$( AM_V_GEN) DESTDIR = ` mktemp -d` && \
make -C $( top_builddir) install DESTDIR = $$ DESTDIR >/dev/null && \
makensis -NOCD -DDESTDIR= $$ DESTDIR $< >/dev/null && \
rm -rf $$ DESTDIR
2013-04-12 14:45:56 +02:00
virt-viewer-$(WIXL_ARCH)-$(VERSION).msi : virt -viewer .wxs deps .txt
$( AM_V_GEN) DESTDIR = ` mktemp -d` && \
make -C $( top_builddir) install DESTDIR = $$ DESTDIR >/dev/null && \
find $$ DESTDIR | wixl-heat -p $$ DESTDIR$( prefix) / \
--component-group CG.virt-viewer --var var.DESTDIR \
--directory-ref= INSTALLDIR > virt-viewer-files.wxs && \
2013-05-01 10:21:25 +01:00
MANUFACTURER = " $( MANUFACTURER) " wixl -D SourceDir = $( prefix) \
2013-04-12 14:45:56 +02:00
-D DESTDIR = $$ DESTDIR$( prefix) \
2014-12-18 11:59:51 +01:00
-D GtkVersion = $( GTK_API_VERSION) \
2014-12-17 06:16:41 +01:00
-D HaveLibvirt = $( HaveLibvirt) \
2014-12-17 06:21:33 +01:00
-D HaveOVirt = $( HaveOVirt) \
2013-04-12 14:45:56 +02:00
--arch $( WIXL_ARCH) \
-o $@ \
$< virt-viewer-files.wxs && \
2013-01-16 17:27:58 +01:00
rm -rf $$ DESTDIR virt-viewer-files.wxs
2013-04-12 14:45:56 +02:00
msi : virt -viewer -$( WIXL_ARCH ) -$( VERSION ) .msi
2013-02-13 15:15:46 +00:00
CLEANFILES += \
2013-01-16 17:27:58 +01:00
deps.txt \
virt-viewer-$( VERSION) .exe \
2013-04-12 14:45:56 +02:00
virt-viewer-$( WIXL_ARCH) -$( VERSION) .msi \
2013-01-16 17:27:58 +01:00
$( NULL)
2013-01-21 15:09:37 +01:00
e l s e #!WIN32
desktopdir = $( datadir) /applications
DESKTOPFILES = remote-viewer.desktop.in
desktop_DATA = $( DESKTOPFILES:.desktop.in= .desktop)
@ I N T L T O O L _ D E S K T O P _ R U L E @
MIMEFILES = virt-viewer-mime.xml.in
mimedir = $( datadir) /mime/packages
mime_DATA = virt-viewer-mime.xml
@ I N T L T O O L _ X M L _ R U L E @
2013-12-18 10:28:40 +01:00
install-data-hook :
i f E N A B L E _ U P D A T E _ M I M E D B
@if $( AM_V_P) ; then set -x; else echo " INSTALL update-mime-database" ; fi ; \
$( UPDATE_MIME_DATABASE) " $( DESTDIR) $( datadir) /mime " ;
e n d i f
uninstall-hook :
i f E N A B L E _ U P D A T E _ M I M E D B
@if $( AM_V_P) ; then set -x; else echo " UNINSTALL update-mime-database" ; fi ; \
$( UPDATE_MIME_DATABASE) " $( DESTDIR) $( datadir) /mime " ;
e n d i f
2013-01-21 15:09:37 +01:00
CLEANFILES += $( mime_DATA) $( desktop_DATA)
EXTRA_DIST += $( MIMEFILES) $( DESKTOPFILES)
2012-06-05 21:30:18 +02:00
e n d i f
2012-03-30 02:43:26 +02:00
- i n c l u d e $( top_srcdir ) / g i t . m k