]> git.pld-linux.org Git - projects/pld-builder.new.git/blobdiff - Makefile
fix dropin target
[projects/pld-builder.new.git] / Makefile
index e82dc21c54c8686db4997cb197de6c1ebfb697eb..c84fe9561fbd266dfc1f8f4cd05a7099987c4fb3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,22 +1,26 @@
 PACKAGE                := pld-builder
-VERSION                := 0.5
+VERSION                := 0.6
 SNAP           := $(shell date +%Y%m%d)
 
 # for make dist
-CVSROOT                := :pserver:cvs@cvs.pld-linux.org:/cvsroot
-CVSMODULE      := pld-builder.new
-CVSTAG         := HEAD
+REMOTE         := ssh://git@git.pld-linux.org/projects/$(MODULE)
+MODULE         := pld-builder.new
+BRANCH         := master
 
-all:
+all: compile
+
+compile:
        python -c "import compileall; compileall.compile_dir('.')"
 
 clean:
        find -name '*.pyc' | xargs rm -f
+       rm -f *.tar.bz2
+
+dist: $(PACKAGE)-$(VERSION).$(SNAP).tar.bz2
+       test ! -x ./dropin || ./dropin $<
+
+%.tar.bz2: %.tar
+       bzip2 -9 $<
 
-dist:
-       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)
-       test -x ./dropin && ./dropin $(PACKAGE)-$(VERSION).$(SNAP).tar.bz2
+%.tar:
+       git archive --prefix=$(patsubst %.tar,%,$@)/ $(BRANCH) -o $@
This page took 0.055795 seconds and 4 git commands to generate.