virt-viewer/data/Makefile.am
Marc-André Lureau 08db836b13 nsis: add deps.txt file in installer
This helps track package version that were used during the
build of Windows installer. It's not ideal, but make up the
lack of package management on windows
2012-10-23 11:17:05 +02:00

22 lines
498 B
Makefile

NULL=
EXTRA_DIST = \
spice-xpi-client-remote-viewer \
virt-viewer.nsis.in \
$(NULL)
if OS_WIN32
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
CLEANFILES = deps.txt virt-viewer-$(VERSION).exe
endif
-include $(top_srcdir)/git.mk