source = leaftag-gtk-sharp-sources.xml SVN_URL = http://osiris.chipx86.com/svn/osiris-misc/trunk/libleaftag-gtk/ LIBLEAFTAG_VERSION=0.3.0 TARBALL_URL=http://releases.chipx86.com/leaftag/libleaftag-gtk/ TARBALL_DIR=libleaftag-gtk-$(LIBLEAFTAG_VERSION) TARBALL_NAME=$(TARBALL_DIR).tar.gz if USE_LIBLEAFTAG_GTK_SVN GET_METHOD=get-from-svn else GET_METHOD=get-from-tarball endif all: $(GET_METHOD) gapi2-parser $(srcdir)/$(source) get-from-tarball: if test ! -d libleaftag-gtk; then \ if test ! -f $(TARBALL_NAME); then \ wget $(TARBALL_URL)/$(TARBALL_NAME); \ fi; \ tar -xzvf $(TARBALL_NAME); \ mv $(TARBALL_DIR) libleaftag-gtk; \ rm -f $(TARBALL_NAME); \ fi get-from-svn: if test -d libleaftag-gtk; then \ cd libleaftag-gtk && svn up; \ else \ svn checkout $(SVN_URL); \ fi uninstall-local: rm -rf libleaftag-gtk EXTRA_DIST = $(source) DISTCLEANFILES = libleaftag-gtk $(TARBALL_NAME)