mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-23 13:36:31 +02:00
Better python packaging
This commit is contained in:
parent
51b06018c1
commit
4f3e7a536d
6 changed files with 54 additions and 32 deletions
24
packages/python/Makefile
Normal file
24
packages/python/Makefile
Normal file
|
@ -0,0 +1,24 @@
|
|||
LANGUAGE=python
|
||||
VERSIONS=2.7.1 3.9.1
|
||||
|
||||
.PHONY: build sign cleanup clean
|
||||
build: $(patsubst %,%/${LANGUAGE}-%.pkg.tar.gz,${VERSIONS})
|
||||
sign: $(patsubst %,%/${LANGUAGE}-%.pkg.tar.gz.asc,${VERSIONS})
|
||||
clean:
|
||||
rm -rf ${VERSIONS}
|
||||
cleanup: $(patsubst %,%/cleanup,${VERSIONS})
|
||||
|
||||
|
||||
%/cleanup: %/Makefile
|
||||
$(MAKE) -C $(shell dirname $<) cleanup
|
||||
rm $(shell dirname $<)/Makefile
|
||||
|
||||
%/${LANGUAGE}-%.pkg.tar.gz.asc: %/Makefile
|
||||
$(MAKE) -C $(shell dirname $<) sign
|
||||
%/${LANGUAGE}-%.pkg.tar.gz: %/Makefile
|
||||
$(MAKE) -C $(shell dirname $<)
|
||||
|
||||
%/Makefile:
|
||||
@mkdir -p $(shell dirname $@)
|
||||
@echo 'VERSION=$(patsubst %/Makefile,%,$@)' > $@
|
||||
@echo 'include ../base.mk' >> $@
|
Loading…
Add table
Add a link
Reference in a new issue