PACKAGE = mageia-kde4-config PKGVERSION = $(VERSION) VERSION = 5 DATE = `date +%Y%m%d` .PHONY: all $(DIRS) clean clean: # TODO # rules to build tarball localcopy: clean rm -rf $(PACKAGE)-$(PKGVERSION)* svn export -q -rBASE . $(PACKAGE)-$(PKGVERSION) localdist: tar tar: localcopy tar cfa $(PACKAGE)-$(PKGVERSION).$(DATE).tar.xz $(PACKAGE)-$(PKGVERSION) rm -rf $(PACKAGE)-$(PKGVERSION) export: git archive --prefix $(PACKAGE)-$(PKGVERSION)/ HEAD | xz -9 > $(PACKAGE)-$(PKGVERSION).$(DATE).tar.xz