2021-02-20 06:34:44 +01:00
|
|
|
.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 $<)
|
|
|
|
|
2021-02-20 15:29:13 +01:00
|
|
|
|
2021-02-20 06:34:44 +01:00
|
|
|
%/Makefile:
|
|
|
|
@mkdir -p $(shell dirname $@)
|
|
|
|
@echo 'VERSION=$(patsubst %/Makefile,%,$@)' > $@
|
2021-02-20 15:29:13 +01:00
|
|
|
@echo 'NAME=${LANGUAGE}' >> $@
|
2021-02-20 06:34:44 +01:00
|
|
|
@echo 'include ../base.mk' >> $@
|