From 8ca9ffe9e9d9823664f0b93fcca57d1de6edf807 Mon Sep 17 00:00:00 2001
From: s-over-4
Date: Mon, 12 Jun 2023 17:45:00 -0400
Subject: halk
---
HALK_FINAL.svg | 59 ----------------------------------------------------------
Makefile | 20 ++++++++------------
README.md | 11 ++++++-----
3 files changed, 14 insertions(+), 76 deletions(-)
delete mode 100644 HALK_FINAL.svg
diff --git a/HALK_FINAL.svg b/HALK_FINAL.svg
deleted file mode 100644
index e22d772..0000000
--- a/HALK_FINAL.svg
+++ /dev/null
@@ -1,59 +0,0 @@
-
-
\ No newline at end of file
diff --git a/Makefile b/Makefile
index 42b6fdb..5b589df 100644
--- a/Makefile
+++ b/Makefile
@@ -1,26 +1,22 @@
-binname := halk
-exec := $(binname).out
-
-compiler := clang
+name := halk
+cc := cc
flags := -g
-
sources := $(wildcard src/*.c)
sources := $(filter-out src/parser.c, $(sources)) # exclude the incomplete parser for now.
objects := $(sources:.c=.o)
-
-$(exec): $(objects)
- $(compiler) $(objects) $(flags) -o $(exec)
+$(name): $(objects)
+ $(cc) $(objects) $(flags) -o ./$(name)
%.o: %.c include/%.h
- $(compiler) -c $(flags) $< -o $@
+ $(cc) -c $(flags) $< -o $@
install:
make
- cp ./$(exec) /usr/local/bin/$(binname)
+ cp ./$(name) $(XDG_DATA_HOME)/bin/$(name)
uninstall:
- rm -f /usr/local/bin/$(binname)
+ rm -f $(XDG_DATA_HOME)/bin/$(name)
clean:
- rm -f *.out *.o src/*.o
+ rm -f ./$(name) ./src/*.o
diff --git a/README.md b/README.md
index 819dc33..cdb5f66 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# HALK
-
+
*HALK* seeks to be a language.
@@ -15,9 +15,10 @@ As of yet, we are safe.
As you have read these words, you are to install *HALK*.
1. Clone *HALK* to a computer.
-2. `sudo make install`.
+2. `make install`.
-If you wish to remove all *HALK*-related items from your life, you can try `sudo make clean`.
+If you wish to remove all *HALK*-related items from your life, you can try `make clean`, followed
+by `make uninstall`.
# Usage
@@ -37,7 +38,7 @@ Examples can be found [here](examples/).
***HALK*** **progress:** 20%
- [x] Lexer
-- [-] Abstract Syntax Tree
-- [x] Parser
+- [~] Abstract Syntax Tree
+- [ ] Parser
- [ ] Doer
- [ ] ?? profit ??
--
cgit v1.2.3