X-Git-Url: https://git.tld-linux.org/?p=TLD.git;a=blobdiff_plain;f=pld-builder.new%2FMakefile;fp=pld-builder.new%2FMakefile;h=e82dc21c54c8686db4997cb197de6c1ebfb697eb;hp=0000000000000000000000000000000000000000;hb=90809c8fec988489786ce00247d9a4150070748b;hpb=ab3934fab858112cd552359b18cb980ea07c310b diff --git a/pld-builder.new/Makefile b/pld-builder.new/Makefile new file mode 100644 index 0000000..e82dc21 --- /dev/null +++ b/pld-builder.new/Makefile @@ -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