]> TLD Linux GIT Repositories - tld-builder.git/blob - Makefile
- script for getting package revisions for list of spec files
[tld-builder.git] / Makefile
1 PACKAGE         := pld-builder
2 VERSION         := 0.5
3 SNAP            := $(shell date +%Y%m%d)
4
5 # for make dist
6 CVSROOT         := :pserver:cvs@cvs.pld-linux.org:/cvsroot
7 CVSMODULE       := pld-builder.new
8 CVSTAG          := HEAD
9
10 all:
11         python -c "import compileall; compileall.compile_dir('.')"
12
13 clean:
14         find -name '*.pyc' | xargs rm -f
15
16 dist:
17         rm -rf $(PACKAGE)-$(VERSION).$(SNAP)
18         mkdir -p $(PACKAGE)-$(VERSION).$(SNAP)
19         cvs -d $(CVSROOT) export -d $(PACKAGE)-$(VERSION).$(SNAP) -r $(CVSTAG) $(CVSMODULE)
20         tar -cjf $(PACKAGE)-$(VERSION).$(SNAP).tar.bz2 $(PACKAGE)-$(VERSION).$(SNAP)
21         rm -rf $(PACKAGE)-$(VERSION).$(SNAP)
22         test -x ./dropin && ./dropin $(PACKAGE)-$(VERSION).$(SNAP).tar.bz2