diff options
author | Oskar <[email protected]> | 2024-02-11 16:42:31 +0100 |
---|---|---|
committer | Oskar <[email protected]> | 2024-02-11 16:42:31 +0100 |
commit | 30fc82f1b352b806c3716bf551f372cefc84c1d7 (patch) | |
tree | 7a91bb442018963d63eec101317b194d420b9a87 /Makefile | |
parent | cbaeb6f6a24532b5ecbc4fea4dcb329961ad4e37 (diff) |
More changes to the makefile to make it easier for testing
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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)" + |