@@ -8,57 +8,57 @@ OCAMLDEP = ocamldep.opt
8
8
9
9
OUTPUT = rescript-editor-analysis.exe
10
10
11
- # %.cmi : %.mli
12
- # @echo Building $@
13
- # @$(OCAMLOPT) $(OCAMLFLAGS) -c $<
14
- # %.cmx : %.ml
15
- # @echo Building $@
16
- # @$(OCAMLOPT) $(OCAMLFLAGS) -c $<
11
+ % .cmi : % .mli
12
+ @echo Building $@
13
+ @$(OCAMLOPT ) $(OCAMLFLAGS ) -c $<
14
+ % .cmx : % .ml
15
+ @echo Building $@
16
+ @$(OCAMLOPT ) $(OCAMLFLAGS ) -c $<
17
17
18
- # include .depend
19
- # depend:
20
- # @$(OCAMLDEP) -native $(INCLUDES) `find src -name "*.ml" -o -name "*.mli"` > .depend
18
+ include .depend
19
+ depend :
20
+ @$(OCAMLDEP ) -native $(INCLUDES ) ` find src -name " *.ml" -o -name " *.mli" ` > .depend
21
21
22
- # SOURCE_FILES = $(shell $(OCAMLDEP) -sort `find src -name "*.ml"` | sed -E "s/\.ml/.cmx/g")
22
+ SOURCE_FILES = $(shell $(OCAMLDEP ) -sort `find src -name "* .ml"` | sed -E "s/\.ml/.cmx/g")
23
23
24
- # $(OUTPUT): $(SOURCE_FILES)
25
- # @echo Linking...
26
- # @$(OCAMLOPT) $(OCAMLFLAGS) -O2 -o $(OUTPUT) \
27
- # -I +compiler-libs unix.cmxa str.cmxa ocamlcommon.cmxa $(INCLUDES) $(SOURCE_FILES)
28
- # @echo Done!
24
+ $(OUTPUT ) : $(SOURCE_FILES )
25
+ @echo Linking...
26
+ @$(OCAMLOPT ) $(OCAMLFLAGS ) -O2 -o $(OUTPUT ) \
27
+ -I +compiler-libs unix.cmxa str.cmxa ocamlcommon.cmxa $(INCLUDES ) $(SOURCE_FILES )
28
+ @echo Done!
29
29
30
- # build-native: $(OUTPUT) depend
30
+ build-native : $(OUTPUT ) depend
31
31
32
- # dce: build-native
33
- # @echo "git diff makefile dce 1"
34
- # git diff tests/src/expected/Auto.res.txt
35
- # ../node_modules/.bin/reanalyze -dce-cmt src -suppress src/vendor
36
- # @echo "git diff makefile dce 2"
37
- # git diff tests/src/expected/Auto.res.txt
32
+ dce : build-native
33
+ @echo " git diff makefile dce 1"
34
+ git diff tests/src/expected/Auto.res.txt
35
+ ../node_modules/.bin/reanalyze -dce-cmt src -suppress src/vendor
36
+ @echo " git diff makefile dce 2"
37
+ git diff tests/src/expected/Auto.res.txt
38
38
39
- # tests/node_modules/.bin/rescript:
40
- # @echo "git diff makefile rescript 1"
41
- # git diff tests/src/expected/Auto.res.txt
42
- # @cd tests && npm install
43
- # @echo "git diff makefile rescript 2"
44
- # git diff tests/src/expected/Auto.res.txt
39
+ tests/node_modules/.bin/rescript :
40
+ @echo " git diff makefile rescript 1"
41
+ git diff tests/src/expected/Auto.res.txt
42
+ @cd tests && npm install
43
+ @echo " git diff makefile rescript 2"
44
+ git diff tests/src/expected/Auto.res.txt
45
45
46
- # test: dce tests/node_modules/.bin/rescript
47
- # @echo "git diff makefile test 1"
48
- # git diff tests/src/expected/Auto.res.txt
49
- # @cd tests && node_modules/.bin/rescript
50
- # @echo "git diff makefile test 2"
51
- # git diff tests/src/expected/Auto.res.txt
52
- # ./test.sh
46
+ test : dce tests/node_modules/.bin/rescript
47
+ @echo " git diff makefile test 1"
48
+ git diff tests/src/expected/Auto.res.txt
49
+ @cd tests && node_modules/.bin/rescript
50
+ @echo " git diff makefile test 2"
51
+ git diff tests/src/expected/Auto.res.txt
52
+ ./test.sh
53
53
54
- # clean:
55
- # git clean -dfx src
54
+ clean :
55
+ git clean -dfx src
56
56
57
- foo :
58
- @echo " git diff makefile foo"
59
- git diff tests/src/expected/Auto.res.txt
60
- @echo " cat -A Auto.res.txt in makefile"
61
- cat -A tests/src/expected/Auto.res.txt
57
+ # foo:
58
+ # @echo "git diff makefile foo"
59
+ # git diff tests/src/expected/Auto.res.txt
60
+ # @echo "cat -A Auto.res.txt in makefile"
61
+ # cat -A tests/src/expected/Auto.res.txt
62
62
63
63
.DEFAULT_GOAL := build-native
64
64
0 commit comments