summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 60578f9..b2e88de 100644
--- a/Makefile
+++ b/Makefile
@@ -3,10 +3,12 @@ CFLAGS=-Wfatal-errors -Wall -Werror -Wextra -g -O2 -static
CFLAGS_TESTBIN=-Wfatal-errors -Wall -Werror -Wextra -g -fsanitize=address
TARGET=7ed
TESTTARGET=7ed-TESTING
+INSTALL_DIRECTORY=/usr/local/bin
all: 7ed
7ed:
$(CC) $(CFLAGS) 7ed.c functions.c startmode.c editmode.c -o $(TARGET)
+ @echo "$(TARGET) is done. Run 'make install' as root to install it"
clean:
rm -f $(TARGET)
@@ -14,4 +16,8 @@ clean:
tests:
$(CC) $(CFLAGS_TESTBIN) 7ed.c functions.c startmode.c editmode.c -o test/$(TESTTARGET)
-
+
+install:
+ cp $(TARGET) $(INSTALL_DIRECTORY)
+ @echo "$(TARGET) was installed to $(INSTALL_DIRECTORY)"
+