This commit is contained in:
Stephen Cochrane 2020-10-24 01:45:13 +02:00
parent d68aa4baa6
commit 5f3b8d6a2d
2 changed files with 12 additions and 4 deletions

View File

@ -4,7 +4,9 @@ CC=gcc
FLAGS=-Wall -pedantic FLAGS=-Wall -pedantic
EXE=bin/GenBlog EXE=bin/GenBlog
all: install all: comp blog build
comp: install
$(CC) $(FLAGS) src/GenBlog.c -o $(EXE) $(CC) $(FLAGS) src/GenBlog.c -o $(EXE)
debug: install debug: install
@ -12,16 +14,17 @@ debug: install
install: install:
mkdir -p bin mkdir -p bin
mkdir -p obj
mkdir -p blogs mkdir -p blogs
clean: clean:
rm -rf blogs/*.html rm -rf blogs/*.html
rm -rf ./blogs.html rm -rf ./blogs.html
rm -rf obj
rm -rf bin rm -rf bin
blog: clean all build:
./build.sh
blog: comp
@# Reset all blogs to start build. @# Reset all blogs to start build.
@# Setup boilerplate html files for blog files @# Setup boilerplate html files for blog files
-@for blog in ./blogs/RawBlogs/*.blog ; do \ -@for blog in ./blogs/RawBlogs/*.blog ; do \

View File

@ -3,6 +3,11 @@ This is my website.
## Building ## Building
```` ````
$ make
````
## Static site
````
$ ./build.sh $ ./build.sh
```` ````