Makefile.am 812 Bytes
Newer Older
1
SUBDIRS=src
simorl's avatar
simorl committed
2

Yann Diorcet's avatar
Yann Diorcet committed
3
INSTALLDIR=$(abs_top_builddir)/$(PACKAGE)-install
4
INSTALLDIR_WITH_PREFIX=$(INSTALLDIR)/$(prefix)
Yann Diorcet's avatar
Yann Diorcet committed
5
ZIPFILE=$(abs_top_builddir)/$(PACKAGE)-win32-$(VERSION).zip
simorl's avatar
simorl committed
6
ZIP_EXCLUDED=include 
7 8 9 10 11 12 13 14 15
PLUGIN_DEPS_PREFIX=/usr/bin
PLUGIN_DEPS=	libsoup-2.4-1.dll \
		libgcrypt-11.dll \
		libgnutls-extra-26.dll \
		libgnutlsxx-26.dll \
		libtasn1-3.dll \
		libgnutls-26.dll \
		libgnutls-openssl-26.dll \
		libgpg-error-0.dll
simorl's avatar
simorl committed
16 17 18 19 20


zip:
	rm -f $(ZIPFILE)
	rm -rf $(INSTALLDIR)
Yann Diorcet's avatar
Yann Diorcet committed
21
	$(MKDIR_P) $(INSTALLDIR)
simorl's avatar
simorl committed
22
	make install DESTDIR=$(INSTALLDIR)
Yann Diorcet's avatar
Yann Diorcet committed
23
	$(MKDIR_P) $(INSTALLDIR_WITH_PREFIX)/bin
24 25
	cd $(PLUGIN_DEPS_PREFIX) && \
		cp -f $(PLUGIN_DEPS) $(INSTALLDIR_WITH_PREFIX)/bin/.
simorl's avatar
simorl committed
26 27 28 29
	cd $(INSTALLDIR)/$(prefix) && rm -rf $(ZIP_EXCLUDED) && \
	zip -r $(ZIPFILE) *

clean-local:
simorl's avatar
simorl committed
30
	rm -rf $(PACKAGE)-install
31
	rm -f $(PACKAGE)-win32-$(VERSION).zip
32