Added run_scripts exercises
This commit is contained in:
24
exercises/run_scripts/Makefile
Normal file
24
exercises/run_scripts/Makefile
Normal file
@@ -0,0 +1,24 @@
|
||||
# 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)
|
||||
Reference in New Issue
Block a user