PACKAGE := pld-builder
VERSION := 0.3
+SNAP := $(shell date +%Y%m%d)
# for make dist
CVSROOT := :pserver:cvs@cvs.pld-linux.org:/cvsroot
find -name '*.pyc' | xargs rm -f
dist:
- rm -rf $(PACKAGE)-$(VERSION)
- mkdir -p $(PACKAGE)-$(VERSION)
- cvs -d $(CVSROOT) export -d $(PACKAGE)-$(VERSION) -r $(CVSTAG) $(CVSMODULE)
- tar -cjf $(PACKAGE)-$(VERSION).tar.bz2 $(PACKAGE)-$(VERSION)
- rm -rf $(PACKAGE)-$(VERSION)
+ rm -rf $(PACKAGE)-$(VERSION).$(SNAP)
+ mkdir -p $(PACKAGE)-$(VERSION).$(SNAP)
+ cvs -d $(CVSROOT) export -d $(PACKAGE)-$(VERSION).$(SNAP) -r $(CVSTAG) $(CVSMODULE)
+ tar -cjf $(PACKAGE)-$(VERSION).$(SNAP).tar.bz2 $(PACKAGE)-$(VERSION).$(SNAP)
+ rm -rf $(PACKAGE)-$(VERSION).$(SNAP)