pkg(python): refactor

This commit is contained in:
Thomas Hobson 2021-02-20 18:34:44 +13:00
parent 170dbc419e
commit 13d5191d77
No known key found for this signature in database
GPG key ID: 9F1FD9D87950DB6F
3 changed files with 26 additions and 26 deletions

View file

@ -1,24 +1,4 @@
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' >> $@
include ../secondary.mk