summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOskar <[email protected]>2024-04-19 13:52:47 +0200
committerOskar <[email protected]>2024-04-19 13:52:47 +0200
commit9f2ccf988319c256f725f2fd4f9e69762ff144ac (patch)
tree99b3887fcfcf348d86a38527345afc8ea656176a
parent09a6f8a344aa4cefab113a52b4088bfcb8c32b47 (diff)
Small changes. I was gonna do more changes but theres no point.
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index cc171d8..6559e58 100644
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,7 @@ TARGET=7ed
TESTTARGET=7ed-TESTING
INSTALL_DIRECTORY=/usr/local/bin
MAKEFLAGS += -s
+SRCS=7ed.c functions.c startmode.c editmode.c input.c i_validation.c process_multiples.c
all: release
clean:
@@ -17,7 +18,7 @@ clean:
tests:
echo "CC 7ed.c functions.c startmode.c editmode.c i_validation.c process_multiples.c ---> test/$(TESTTARGET)"
- $(CC) $(CFLAGS_TESTBIN) 7ed.c functions.c startmode.c editmode.c input.c i_validation.c process_multiples.c -o test/$(TESTTARGET)
+ $(CC) $(CFLAGS_TESTBIN) $(SRCS) -o test/$(TESTTARGET)
install:
cp $(TARGET) $(INSTALL_DIRECTORY)
@@ -25,5 +26,5 @@ install:
release:
echo "CC 7ed.c functions.c startmode.c editmode.c i_validation.c process_multiples.c ---> $(TARGET)"
- $(CC) $(CFLAGS) 7ed.c functions.c startmode.c editmode.c input.c i_validation.c process_multiples.c -o $(TARGET)
+ $(CC) $(CFLAGS) $(SRCS) -o $(TARGET)
echo "$(TARGET) is done."