summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index f916930..36bd738 100644
--- a/Makefile
+++ b/Makefile
@@ -12,15 +12,17 @@
# License for the specific language governing permissions and limitations under
# the License.
-ugtd: ugtd.urp mdl main.urs main.ur
+MDL = mdl/lib.urp mdl/mdl.ur
+
+ugtd: ugtd.urp $(MDL) main.urs main.ur
urweb -ccompiler build_scripts/clang -output $@ ugtd
.PHONY: mdl
-mdl: mdl/lib.urp mdl/mdl.ur
-mdl/lib.urp mdl/mdl.ur: mdl/classes
+mdl: $(MDL)
+$(MDL): mdl/classes
build_scripts/generate_mdl <$<
.PHONY: clean
clean:
- $(RM) mdl/lib.urp mdl/mdl.ur
+ $(RM) $(MDL)
$(RM) ugtd