aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-05-27 18:21:33 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-05-27 18:21:33 +0200
commitb92b77f2f3ad0b6683c5f8d6d9a02870ea3bef28 (patch)
tree8302e6d1488e771b02fc296daeacec3ef17118b6
parente7583299b0ef8f7372f075f89c4b0ca733d02e02 (diff)
move to make
-rw-r--r--.gitignore8
-rw-r--r--all.do3
-rw-r--r--default.o.do4
-rw-r--r--makefile10
-rw-r--r--readme.md8
5 files changed, 13 insertions, 20 deletions
diff --git a/.gitignore b/.gitignore
index 31b4695..87e54c2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,8 +1,2 @@
-all
-
-*.d
+main
*.o
-.dep.*
-.depend.*
-.lock.*
-.target.*
diff --git a/all.do b/all.do
deleted file mode 100644
index 5908152..0000000
--- a/all.do
+++ /dev/null
@@ -1,3 +0,0 @@
-DEPS="main.o"
-redo-ifchange $DEPS
-gcc -o "$3" $DEPS
diff --git a/default.o.do b/default.o.do
deleted file mode 100644
index ae34754..0000000
--- a/default.o.do
+++ /dev/null
@@ -1,4 +0,0 @@
-redo-ifchange "$2.cpp"
-g++ -MD -MF "$2.d" -c -o "$3" "$2.cpp"
-read DEPS < "$2.d"
-redo-ifchange ${DEPS#*:}
diff --git a/makefile b/makefile
index 41e74eb..14da6dc 100644
--- a/makefile
+++ b/makefile
@@ -1,8 +1,8 @@
-# this makefile transparently forwards all `make` calls to `redo` for convenience
+main: main.o
-.PHONY: FORCE
+clean:
+ git clean -fxdi
-all: FORCE
- @redo $(MAKECMDGOALS)
+compile_commands.json:
+ compiledb make -Bn
-$(MAKECMDGOALS): all
diff --git a/readme.md b/readme.md
index 90cffb5..d97c8ba 100644
--- a/readme.md
+++ b/readme.md
@@ -1,6 +1,12 @@
# design patters
-List of applied design patters
+## Building
+
+```
+make
+```
+
+## Applied design patters
- Observer
- Factory