source = leaftag-sharp-sources.xml SVN_URL = http://osiris.chipx86.com/svn/osiris-misc/trunk/libleaftag/ LIBLEAFTAG_VERSION=0.3.0 TARBALL_URL=http://releases.chipx86.com/leaftag/libleaftag/ TARBALL_DIR=libleaftag-$(LIBLEAFTAG_VERSION) TARBALL_NAME=$(TARBALL_DIR).tar.gz if USE_LIBLEAFTAG_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; then \ if test ! -f $(TARBALL_NAME); then \ wget $(TARBALL_URL)/$(TARBALL_NAME); \ fi; \ tar -xzvf $(TARBALL_NAME); \ mv $(TARBALL_DIR) libleaftag; \ rm -f $(TARBALL_NAME); \ fi get-from-svn: @if test -d libleaftag; then \ cd libleaftag && svn up; \ else \ svn checkout $(SVN_URL); \ fi uninstall-local: rm -rf libleaftag EXTRA_DIST = $(source) DISTCLEANFILES = libleaftag $(TARBALL_NAME)