]> TLD Linux GIT Repositories - TLD.git/blobdiff - pld-builder.new/Makefile
- from https://github.com/pld-linux/pld-builder.new
[TLD.git] / pld-builder.new / Makefile
diff --git a/pld-builder.new/Makefile b/pld-builder.new/Makefile
new file mode 100644 (file)
index 0000000..e82dc21
--- /dev/null
@@ -0,0 +1,22 @@
+PACKAGE                := pld-builder
+VERSION                := 0.5
+SNAP           := $(shell date +%Y%m%d)
+
+# for make dist
+CVSROOT                := :pserver:cvs@cvs.pld-linux.org:/cvsroot
+CVSMODULE      := pld-builder.new
+CVSTAG         := HEAD
+
+all:
+       python -c "import compileall; compileall.compile_dir('.')"
+
+clean:
+       find -name '*.pyc' | xargs rm -f
+
+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