2013-01-21 18:09:37 +04:00
NULL =
CLEANFILES =
2013-05-01 13:21:25 +04:00
MANUFACTURER = Virt Manager Project
2012-01-27 17:51:36 +04:00
EXTRA_DIST = \
2013-01-16 20:27:58 +04:00
virt-viewer.wxs.in \
2019-02-20 18:19:43 +03:00
gettext/its/mime.its \
gettext/its/mime.loc \
2012-01-27 17:51:36 +04:00
$( NULL)
2012-03-30 04:43:26 +04:00
2019-02-20 18:19:43 +03:00
PO_FILES = $( wildcard $( srcdir) /../po/*.po)
2013-04-03 16:02:01 +04:00
# this make sure those files are regenerated when they change
# (in maintainer-mode)
2016-04-26 15:36:57 +03:00
all-local : virt -viewer .wxs
2013-04-03 16:02:01 +04:00
2012-06-05 23:30:18 +04:00
i f O S _ W I N 3 2
2013-01-16 20:27:58 +04:00
2014-12-17 08:16:41 +03: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 08:21:33 +03: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
2014-12-17 08:25:32 +03:00
i f H A V E _ S P I C E _ G T K
HaveSpiceGtk = True
e l s e
HaveSpiceGtk = False
e n d i f
2014-12-17 08:29:21 +03:00
i f H A V E _ G T K _ V N C
HaveGtkVnc = True
e l s e
HaveGtkVnc = False
e n d i f
2019-02-15 13:38:41 +03:00
buildenv.txt :
$( AM_V_GEN) rpm -qa | sort | unix2dos > $@
2012-06-05 23:30:18 +04:00
2019-02-15 13:38:41 +03:00
virt-viewer-$(WIXL_ARCH)-$(VERSION).msi : virt -viewer .wxs buildenv .txt
2013-04-12 16:45:56 +04:00
$( 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 13:21:25 +04:00
MANUFACTURER = " $( MANUFACTURER) " wixl -D SourceDir = $( prefix) \
2013-04-12 16:45:56 +04:00
-D DESTDIR = $$ DESTDIR$( prefix) \
2014-12-17 08:25:32 +03:00
-D HaveSpiceGtk = $( HaveSpiceGtk) \
2014-12-17 08:29:21 +03:00
-D HaveGtkVnc = $( HaveGtkVnc) \
2014-12-17 08:16:41 +03:00
-D HaveLibvirt = $( HaveLibvirt) \
2014-12-17 08:21:33 +03:00
-D HaveOVirt = $( HaveOVirt) \
2013-04-12 16:45:56 +04:00
--arch $( WIXL_ARCH) \
-o $@ \
$< virt-viewer-files.wxs && \
2013-01-16 20:27:58 +04:00
rm -rf $$ DESTDIR virt-viewer-files.wxs
2013-04-12 16:45:56 +04:00
msi : virt -viewer -$( WIXL_ARCH ) -$( VERSION ) .msi
2013-02-13 19:15:46 +04:00
CLEANFILES += \
2019-02-15 13:38:41 +03:00
buildenv.txt \
2013-04-12 16:45:56 +04:00
virt-viewer-$( WIXL_ARCH) -$( VERSION) .msi \
2013-01-16 20:27:58 +04:00
$( NULL)
2013-01-21 18:09:37 +04:00
e l s e #!WIN32
desktopdir = $( datadir) /applications
DESKTOPFILES = remote-viewer.desktop.in
desktop_DATA = $( DESKTOPFILES:.desktop.in= .desktop)
2019-02-20 18:19:43 +03:00
%.desktop : %.desktop .in $( PO_FILES )
$( AM_V_GEN) $( MSGFMT) --desktop --template $< -d $( top_srcdir) /po -o $@
2013-01-21 18:09:37 +04:00
MIMEFILES = virt-viewer-mime.xml.in
mimedir = $( datadir) /mime/packages
mime_DATA = virt-viewer-mime.xml
2019-02-20 18:19:43 +03:00
%-mime.xml : %-mime .xml .in $( PO_FILES )
$( AM_V_GEN) GETTEXTDATADIR = $( srcdir) /gettext $( MSGFMT) --xml --template $< -d $( top_srcdir) /po -o $@
2013-01-21 18:09:37 +04:00
2016-06-27 18:20:54 +03:00
appdatadir = $( datadir) /appdata
APPDATAFILES = remote-viewer.appdata.xml.in
appdata_DATA = $( APPDATAFILES:.xml.in= .xml)
2019-02-20 18:19:43 +03:00
%.appdata.xml : %.appdata .xml .in $( PO_FILES )
$( AM_V_GEN) $( MSGFMT) --xml --template $< -d $( top_srcdir) /po -o $@
2016-06-27 18:20:54 +03:00
2013-12-18 13:28:40 +04: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
2016-06-27 18:20:54 +03:00
CLEANFILES += $( mime_DATA) $( desktop_DATA) $( appdata_DATA)
EXTRA_DIST += $( MIMEFILES) $( DESKTOPFILES) $( APPDATAFILES)
2013-01-21 18:09:37 +04:00
2012-06-05 23:30:18 +04:00
e n d i f
2012-03-30 04:43:26 +04:00
- i n c l u d e $( top_srcdir ) / g i t . m k