-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (26 loc) · 949 Bytes
/
Makefile
File metadata and controls
28 lines (26 loc) · 949 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# ========================
# Variables
# ========================
RESULTS_DIR := results
# ========================
# Limpieza OJO!
# ========================
.PHONY: clean-results
clean-results:
@echo "Borrando todos los resultados previos..."
@rm -rf ${RESULTS_DIR}/* ${RESULTS_DIR}/.[!.]* ${RESULTS_DIR}/..?*
@echo "✔️ Carpeta '${RESULTS_DIR}/' limpia."
# ========================
# Guardado de reportes con un ts por las dudas
# ========================
.PHONY: reports-save
reports-save:
@echo "Guardando reportes..."
@TIMESTAMP=$$(date +"%Y%m%d_%H%M%S"); \
mkdir -p ${RESULTS_DIR}; \
cp log.html ${RESULTS_DIR}/log_$${TIMESTAMP}.html; \
cp report.html ${RESULTS_DIR}/report_$${TIMESTAMP}.html; \
cp output.xml ${RESULTS_DIR}/output_$${TIMESTAMP}.xml; \
echo "Reportes guardados en '${RESULTS_DIR}/' con timestamp: $${TIMESTAMP}"; \
echo "Eliminando archivos temporales..."; \
rm -f log.html report.html output.xml