blob: 124c39a9cabcebfdafc1f0935174d78ad9646144 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
$NetBSD: patch-ao,v 1.8 2004/11/29 22:05:08 dmcmahill Exp $
--- ocaml/Makefile.orig Tue Mar 30 13:30:26 2004
+++ ocaml/Makefile
@@ -26,7 +26,7 @@ PLATFORM=$(shell uname -s)
EXE=modelicac
-.SUFFIXES: .ml .mli .cmo .cmi .cmx .mlp .mpi
+.SUFFIXES: .ml .mli .cmo .cmi .cmx .mlp .mpi .mll .mly
@@ -60,12 +60,12 @@ EXE=modelicac
@$(OCAMLOPT) $(OCAMLOPTFLAGS) -c $(<)
-%.ml %.mli: %.mly
+.mly.ml:
@ocamlyacc $(<)
@$(RM) -f $(<:.mly=.mli)
-%.ml: %.mll
+.mll.ml:
@ocamllex $(<)
|