From b92b77f2f3ad0b6683c5f8d6d9a02870ea3bef28 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Mon, 27 May 2024 18:21:33 +0200 Subject: move to make --- .gitignore | 8 +------- all.do | 3 --- default.o.do | 4 ---- makefile | 10 +++++----- readme.md | 8 +++++++- 5 files changed, 13 insertions(+), 20 deletions(-) delete mode 100644 all.do delete mode 100644 default.o.do 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 -- cgit v1.2.3