summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Makefile13
-rw-r--r--docs/Makefile7
-rw-r--r--frontend/Makefile8
-rw-r--r--iadocs/Makefile14
-rw-r--r--iadocs/appendix.tex10
-rw-r--r--sql/Makefile7
6 files changed, 45 insertions, 14 deletions
diff --git a/Makefile b/Makefile
index 9f122cd..babb4ee 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
-.PHONY: default backend frontend
+.PHONY: default backend frontend docs sql iadocs
-default: backend tmpl frontend
+default: backend tmpl frontend docs sql iadocs
backend:
make -C backend
@@ -10,3 +10,12 @@ tmpl:
frontend:
make -C frontend
+
+docs:
+ make -C docs
+
+sql:
+ make -C sql
+
+iadocs:
+ make -C iadocs
diff --git a/docs/Makefile b/docs/Makefile
new file mode 100644
index 0000000..6e023a7
--- /dev/null
+++ b/docs/Makefile
@@ -0,0 +1,7 @@
+.PHONY: docs
+
+docs: ../dist/docs/admin_handbook.html ../dist/docs/cca.scfg.example ../dist/docs/handbook.css
+
+../dist/docs/%: %
+ mkdir -p ../dist/docs
+ cp $< $@
diff --git a/frontend/Makefile b/frontend/Makefile
index d863e84..86251a9 100644
--- a/frontend/Makefile
+++ b/frontend/Makefile
@@ -2,10 +2,6 @@
frontend: ../dist/static/student.js ../dist/static/style.css
-../dist/static/student.js:
+../dist/static/%: %
mkdir -p ../dist/static
- minify student.js -o ../dist/static/student.js
-
-../dist/static/style.css:
- mkdir -p ../dist/static
- minify style.css -o ../dist/static/style.css
+ minify $< -o $@
diff --git a/iadocs/Makefile b/iadocs/Makefile
index d2057e9..17277a0 100644
--- a/iadocs/Makefile
+++ b/iadocs/Makefile
@@ -1,11 +1,13 @@
-# GNU Make is required because BSD Make has bad pattern matching
+.PHONY: iadocs
-.SUFFIXES: .tex .pdf
+iadocs: ../dist/iadocs/cover_page.htm ../dist/iadocs/crita_planning.pdf ../dist/iadocs/critb_design.pdf ../dist/iadocs/critb_recordoftasks.pdf ../dist/iadocs/critc_development.pdf ../dist/iadocs/critd_functionality.pdf ../dist/iadocs/crite_evaluation.pdf ../dist/iadocs/appendix.pdf
-.PHONY: all
+../dist/iadocs/%.htm: %.htm
+ mkdir -p ../dist/iadocs
+ cp $< $@
-all: crita_planning.pdf critb_design.pdf critb_recordoftasks.pdf critc_development.pdf critd_functionality.pdf crite_evaluation.pdf
-
-%.pdf: %.tex header.inc
+../dist/iadocs/%.pdf: %.tex header.inc
+ mkdir -p ../dist/iadocs
lualatex $<
lualatex $<
+ mv $$(basename $@) $@
diff --git a/iadocs/appendix.tex b/iadocs/appendix.tex
index e69de29..d893e52 100644
--- a/iadocs/appendix.tex
+++ b/iadocs/appendix.tex
@@ -0,0 +1,10 @@
+\input{header.inc}
+
+\title{Appendix}
+
+\begin{document}
+\maketitle
+
+
+
+\end{document}
diff --git a/sql/Makefile b/sql/Makefile
new file mode 100644
index 0000000..eae4c13
--- /dev/null
+++ b/sql/Makefile
@@ -0,0 +1,7 @@
+.PHONY: sql
+
+docs: ../dist/sql/schema.sql
+
+../dist/sql/%: %
+ mkdir -p ../dist/sql
+ cp $< $@