Estructura con muchas fallas, pero es una idea en general (?
-
-
Save neverkas/81634b185fd9cb9927fde62bec3fa90b to your computer and use it in GitHub Desktop.
Jugando con makefiles
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PATH_TAREA=tarea | |
| TEMPLATE_TAREA_BEFORE=.templates/merge-conflicto/before/ | |
| TEMPLATE_TAREA_AFTER=.templates/merge-conflicto/after/ | |
| CHECK_BRANCH_tarea=$(shell git show-ref refs/heads/master) | |
| BRANCH_tarea_new=feature/tarea2 | |
| PATH_LOGS=/logs/errors.log |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -include .env | |
| export | |
| ejecutar: tarea1 tarea2 | |
| @echo "Tarea 1 realizada" | |
| git checkout master | |
| git merge $(BRANCH_tarea_new) | |
| tarea1: | |
| @echo "Agregando archivos y confirmando cambios" | |
| rsync -avr $(TEMPLATE_TAREA_BEFORE)/* $(PATH_TAREA)/ | |
| $(MAKE) -f conflicto1.mk agregarConfirmarCambios | |
| tarea2: | |
| @echo "Agregando archivos y confirmando cambios" | |
| git checkout -b $(BRANCH_tarea_new) | |
| rsync -avr .$(TEMPLATE_TAREA_AFTER)/* $(PATH_TAREA) | |
| $(MAKE) -f conflicto1.mk agregarConfirmarCambios | |
| agregarConfirmarCambios: | |
| git add $(PATH_TAREA)/ && git commit -m "Agregamos tarea" | |
| clean: | |
| rm -rf tarea | |
| git branch --delete $(BRANCH_tarea_new) &>$(PATH_LOGS) | |
| .PHONY: ejecutar tarea1 tarea2 agregarConfirmarCambios clean |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment