PRODUCT=win_iconv
SVNURL=http://win-iconv.googlecode.com/svn/trunk

distclean:
	rm -Rf $(BUILDDIR)/$(PRODUCT)

prepare: distclean $(CONFIGDIR)/$(PRODUCT)/downloaded patch
	cp -r $(SRCDIR)/$(PRODUCT) $(BUILDDIR)/$(PRODUCT)

build: prepare
	$(MAKE) -C $(BUILDDIR)/$(PRODUCT) libiconv.a

install: build
	$(INSTALL) -d $(PREFIX)/include
	$(INSTALL) -p -m 644 $(BUILDDIR)/$(PRODUCT)/iconv.h $(PREFIX)/include
	$(INSTALL) -d $(PREFIX)/lib
	$(INSTALL) -p -m 644 $(BUILDDIR)/$(PRODUCT)/libiconv.a $(PREFIX)/lib

include $(MAKELIB)/default.rules
include $(MAKELIB)/svn.rules
include $(MAKELIB)/patch.rules

.PHONY: install build distclean
