diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-10-04 17:10:08 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-10-04 17:10:08 +0200 |
commit | 8531a023f0a3db50897ea77f38a5d59909a97825 (patch) | |
tree | d317a69c0bb844b86b4a0a2f16651adc20482144 /opdracht-2 | |
parent | df4e9faf60be8039af715c60a1fd7b21da8b99c5 (diff) |
makefile build instead of janky shell scripts
Diffstat (limited to 'opdracht-2')
-rwxr-xr-x | opdracht-2/build | 3 | ||||
-rw-r--r-- | opdracht-2/makefile | 9 | ||||
-rw-r--r-- | opdracht-2/reset-2.sql | 2 | ||||
-rw-r--r-- | opdracht-2/reset.sql | 2 |
4 files changed, 11 insertions, 5 deletions
diff --git a/opdracht-2/build b/opdracht-2/build deleted file mode 100755 index 6f370cb..0000000 --- a/opdracht-2/build +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh -cat ../opdracht-1/reset.sql ../opdracht-1/q*.sql reset-2.sql > reset.sql -source ../render-opdracht diff --git a/opdracht-2/makefile b/opdracht-2/makefile new file mode 100644 index 0000000..19a0072 --- /dev/null +++ b/opdracht-2/makefile @@ -0,0 +1,9 @@ +TARGET = opdracht-2 +RESET_SQL += ../opdracht-1/.tmp.sql + +all: $(TARGET).md + +../opdracht-1/.tmp.sql: + make -C ../opdracht-1 + +include ../common.mk diff --git a/opdracht-2/reset-2.sql b/opdracht-2/reset-2.sql deleted file mode 100644 index 08ec0f3..0000000 --- a/opdracht-2/reset-2.sql +++ /dev/null @@ -1,2 +0,0 @@ -drop table Status; - diff --git a/opdracht-2/reset.sql b/opdracht-2/reset.sql index e69de29..3e90143 100644 --- a/opdracht-2/reset.sql +++ b/opdracht-2/reset.sql @@ -0,0 +1,2 @@ +drop table if exists Status; + |