Files
system-programming/exercises/run_scripts/Makefile
Fabio Scotto di Santolo 32acc0954f Added run_scripts exercises
2025-07-07 18:01:53 +02:00

25 lines
416 B
Makefile

# Makefile for sequential script executor project
CC = gcc
CFLAGS = -Wall -Wextra -std=c11 -g
TARGET = run_scripts
SRC = main.c
.PHONY: all clean run test valgrind
all: $(TARGET)
$(TARGET): $(SRC)
$(CC) $(CFLAGS) -o $@ $^
run: $(TARGET)
./$(TARGET) tests/hello.sh tests/fail.sh
test: run
valgrind: $(TARGET)
valgrind --leak-check=full ./$(TARGET) scripts/test1.sh scripts/test2.sh
clean:
rm -f $(TARGET)