gems/Makefile

18 lines
632 B
Makefile
Raw Normal View History

2021-05-27 20:37:41 +00:00
SHELL := bash
.DEFAULT_GOAL := help
help: always ## Ayuda
@grep "^[^\t]\+:.*##" Makefile | sed -re "s/(.*):.*##(.*)/\1;\2/" | column -s ";" -t | sed -re "s/^([^ ]+) /\x1B[38;5;197m\1\x1B[0m/"
2021-10-20 18:24:48 +00:00
%: ## Agrega la gema a la cola de compilación (make puma v=5.3.0)
2021-05-27 20:37:41 +00:00
@test -n "$v" || echo "Falta la versión en el argumento v=" ; :
@test -n "$v" || exit 1
2021-10-20 18:24:48 +00:00
install -dm 755 build/$@
touch build/$@/$(v)
2023-08-30 18:43:50 +00:00
git add build/$@/$(v) && git commit build/$@/$(v) -m "$@: $v" ; :
2021-05-27 20:37:41 +00:00
2022-02-15 13:56:37 +00:00
missing:
@comm -23 <(find build/ -type f | grep -v /.keep | cut -d / -f 2- | sort) <(find built/ -type f | grep -v /.keep | cut -d / -f 3- | sort)
2021-05-27 20:37:41 +00:00
.PHONY: always