From 56dfff3142865b3f8d44f6bf66e23d32140f4a33 Mon Sep 17 00:00:00 2001 From: Ziad Arafat Date: Wed, 3 May 2023 21:52:08 -0600 Subject: [PATCH] Added makefile for prolog --- PA009/Makefile | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/PA009/Makefile b/PA009/Makefile index a0a42bf..fc315cb 100644 --- a/PA009/Makefile +++ b/PA009/Makefile @@ -4,22 +4,8 @@ reset=`tput sgr0` # Variables so its easy to make changes if I need to (it ended up being helpful) -all: test +all: + -test: pa008/App.java pa008/Natural.java - @echo "${green} Building and executing Java code ${reset}" - javac -cp pa008/ pa008/*java - java -cp . pa008/App - -run_ada: grade_distribution.adb - @echo "${green} Building and executing Ada code ${reset}" - gcc -c grade_distribution.adb - gnatbind grade_distribution - gnatlink grade_distribution - ./grade_distribution - -clean: - rm -rf *.o - rm -rf *.ali - rm -rf grade_distribution - rm -rf pa008/*.class \ No newline at end of file +test: + swipl -s list_operations_tests.pl -g run_tests,halt \ No newline at end of file