diff --git a/workflows/Makefile b/workflows/Makefile new file mode 100644 index 0000000000000000000000000000000000000000..987930c194e11a491a4dd3a846bb9561e5476a87 --- /dev/null +++ b/workflows/Makefile @@ -0,0 +1,21 @@ +# Makefile pour enchaîner deux scripts + +# Cible par défaut (si 'make' est appelé sans argument) +all: tp1_output.txt + +# Première étape : exécuter download_data.R +download_data_output.txt: ~/tp1ara/src/download_data.R + @echo "Running download_data.R..." + @Rscript ~/tp1ara/src/download_data.R > download_data_output.txt + @echo "download_data.R completed and output stored in download_data_output.txt." + +# Deuxième étape : exécuter tp1.R en utilisant le résultat du premier script +tp1_output.txt: download_data_output.txt ~/tp1ara/src/tp1.R + @echo "Running tp1.R..." + @Rscript ~/tp1ara/src/tp1.R > tp1_output.txt + @echo "tp1.R completed and output stored in tp1_output.txt." + +# Nettoyer les fichiers générés +clean: + @rm -f download_data_output.txt tp1_output.txt + @echo "Cleaned up output files." diff --git a/workflows/download_data_output.txt b/workflows/download_data_output.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/workflows/tp1_output.txt b/workflows/tp1_output.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391