Skip to content

Commit 3bce508

Browse files
committed
Added Makefile, separate build dir
1 parent afa1e95 commit 3bce508

File tree

6 files changed

+16
-630
lines changed

6 files changed

+16
-630
lines changed

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@
2121
*.kate-swp
2222
CMakeFiles/*
2323
CMakeCache.txt
24-
Makefile
2524
cmake_install.cmake
2625
stats/*
27-
build/*
2826
!build/Makefile
2927
!build/*.make
3028
*.swp
29+
30+
# at least until the book is in a more stable state
31+
build/*.html

Makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
DOCS = ch0.adoc ch1.adoc ch2.adoc refs.adoc
3+
4+
book: ${DOCS}
5+
asciidoctor ${DOCS}
6+
mv *.html build
7+
8+
clean:
9+
rm build/*.html
10+

build/emptyfile

Whitespace-only changes.

ch0.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
= Chapter 0: Hello World
2+

ch1.html

Lines changed: 0 additions & 628 deletions
This file was deleted.

ch2.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
= Chapter 2: Syscalls

0 commit comments

Comments
 (0)