2013-01-21 18:09:37 +04:00
NULL =
CLEANFILES =
2012-01-27 17:51:36 +04:00
EXTRA_DIST = \
2012-02-06 18:22:42 +04:00
spice-xpi-client-remote-viewer \
2013-01-16 20:27:58 +04:00
virt-viewer.wxs.in \
2012-01-27 17:51:36 +04:00
virt-viewer.nsis.in \
2013-01-21 18:09:37 +04:00
virt-viewer-debug.nsis.in \
2012-01-27 17:51:36 +04:00
$( NULL)
2012-03-30 04:43:26 +04:00
2013-04-03 16:02:01 +04:00
# this make sure those files are regenerated when they change
# (in maintainer-mode)
all-local : virt -viewer .wxs virt -viewer .nsis virt -viewer -debug .nsis
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
2012-06-05 23:30:18 +04: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 && \
makensis -NOCD -DDESTDIR= $$ DESTDIR $< >/dev/null && \
rm -rf $$ DESTDIR
2013-01-16 20:27:58 +04:00
virt-viewer-$(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 && \
wixl -D SourceDir = $( prefix) \
-D DESTDIR = $$ DESTDIR$( prefix) -o $@ \
$< virt-viewer-files.wxs && \
rm -rf $$ DESTDIR virt-viewer-files.wxs
2013-02-13 19:15:46 +04:00
CLEANFILES += \
2013-01-16 20:27:58 +04:00
deps.txt \
virt-viewer-$( VERSION) .exe \
virt-viewer-$( VERSION) .msi \
$( 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)
@ 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 @
CLEANFILES += $( mime_DATA) $( desktop_DATA)
EXTRA_DIST += $( MIMEFILES) $( DESKTOPFILES)
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