summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorOskar <[email protected]>2023-11-07 23:12:31 +0100
committerOskar <[email protected]>2023-11-07 23:12:31 +0100
commite2965f7ea63a5426e018c4e8c7f557fcce4c69c0 (patch)
treec6c351a729b64a8a0112de6f1e3849746f629695 /Makefile
parentc09957c3026aa7f25d7bc7a0379d961990bc9e34 (diff)
Added edit mode and function to write the changes to file. Write function is not completely done yet because the temp file created by it is not removed when it is done. But other than that the editor actually works now. There are still some quirks that i need to sort out, especially the fact that you cant actually create a new line beyond the amount in the file you are editing
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 5e2326b..6746525 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,8 @@
all: 7ed
7ed:
- gcc -Wfatal-errors -Wall -Werror -Wextra -g 7ed.c functions.c startmode.c -o 7ed
+ gcc -Wfatal-errors -Wall -Werror -Wextra -g 7ed.c functions.c startmode.c editmode.c -o 7ed
+ cp 7ed test
+ mv test/7ed test/7ed-test
clean:
- rm -f 7ed \ No newline at end of file
+ rm -f 7ed
+ rm -f test/7ed-test