Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Commit 1cec130

Browse files
committed
Clean up makefile, gitignore, package.json, etc.
1 parent b5e5eed commit 1cec130

File tree

5 files changed

+7
-39
lines changed

5 files changed

+7
-39
lines changed

.gitignore

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,7 @@ node_modules
44
*.cm*
55
*.o
66
*.s
7-
lib/bs
8-
lib/rescript.exe
9-
lib/refmt.exe
10-
lib/test.exe
11-
lib/bench.exe
12-
lib/Rescript2.ml
13-
lib/rescript.ml
7+
lib/*
8+
!lib/README.md
149
.vscode/settings.json
1510
# each person has its own preferences

Makefile

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ build-native: lib/refmt.exe lib/rescript.exe depend
5151

5252
bootstrap: build-native
5353
ocaml unix.cma ./scripts/bspack.ml -bs-main Res_cli -I src -o ./lib/rescript.ml
54-
./lib/rescript.exe -parse ml -print ns ./lib/Rescript.ml > ./lib/Rescript2.ml
55-
$(OCAMLOPT) -w a -pp "./lib/rescript.exe -print binary" -O2 -o ./lib/rescript2.exe -I +compiler-libs ocamlcommon.cmxa -I lib ./lib/Rescript2.ml
54+
./lib/rescript.exe -parse ml -print ns ./lib/rescript.ml > ./lib/rescript2.ml
55+
$(OCAMLOPT) -w a -pp "./lib/rescript.exe -print binary" -O2 -o ./lib/rescript2.exe -I +compiler-libs ocamlcommon.cmxa -I lib ./lib/rescript2.ml
5656
mv ./lib/rescript2.exe ./lib/rescript.exe
5757

5858
lib/refmt.exe: vendor/refmt_main3.ml
@@ -84,14 +84,5 @@ reanalyze: build-native lib/test.exe
8484
./node_modules/.bin/reanalyze -all-cmt . -suppress tests -suppress benchmarks
8585

8686
clean:
87-
rm -rf src/*.cm*
88-
rm -rf src/*.o
89-
rm -rf tests/*.cm*
90-
rm -rf tests/*.o
91-
rm -rf benchmarks/*.cm*
92-
rm -rf benchmarks/*.o
93-
rm -rf lib/bench.exe
94-
rm -rf lib/rescript.exe
95-
rm -rf lib/test.exe
96-
git clean -dfx src
87+
git clean -dfx src benchmarks lib tests
9788
.PHONY: clean test roundtrip-test termination dce exception reanalyze bootstrap build-native

lib/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
We store a few dev-time binaries here.

lib/napkinscript

Lines changed: 0 additions & 16 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
{
22
"name": "rescript-syntax",
3-
"version": "0.0.8-dev",
3+
"version": "0.0.1",
44
"description": "",
55
"main": "Napkinscript.ml",
6-
"bin": {
7-
"napkinscript": "./lib/napkinscript.exe"
8-
},
96
"dependencies": {},
107
"devDependencies": {
118
"jest": "^24.9.0",

0 commit comments

Comments
 (0)