Skip to content

Commit

Permalink
Move sources to src/ subdirectory
Browse files Browse the repository at this point in the history
  • Loading branch information
let-def committed Apr 16, 2013
1 parent b5763c3 commit 47f759e
Show file tree
Hide file tree
Showing 124 changed files with 19 additions and 21 deletions.
16 changes: 8 additions & 8 deletions .merlin
@@ -1,10 +1,10 @@
S .
S parsing
S typing
S utils
B _build
B _build/parsing
B _build/typing
B _build/utils
S src/.
S src/parsing
S src/typing
S src/utils
B _build/src
B _build/src/parsing
B _build/src/typing
B _build/src/utils
PKG findlib
PKG yojson
20 changes: 9 additions & 11 deletions Makefile
@@ -1,34 +1,32 @@
include Makefile.config
-include Makefile.config

TARGET = ocamlmerlin.native

DISTNAME = ocamlmerlin-0.1
DISTFILES = configure Makefile README _tags vim emacs $(wildcard *.ml *.mli *.mly *.mll)

OCAMLBUILD=ocamlbuild -Is .,typing,parsing,utils
OCAMLBUILD=ocamlbuild -Is src,src/typing,src/parsing,src/utils
OCAMLFIND=ocamlfind

all: $(TARGET)

$(TARGET):
src/myocamlbuild_config.ml:
@echo "Please run ./configure"
@false

$(TARGET): src/myocamlbuild_config.ml
$(OCAMLBUILD) -use-ocamlfind $@

.PHONY: $(TARGET) all clean dist distclean install uninstall
.PHONY: $(TARGET) all clean distclean install uninstall

clean:
$(OCAMLBUILD) -clean

check: $(TARGET)
./test.sh

dist:
mkdir $(DISTNAME)
cp -r $(DISTFILES) $(DISTNAME)
tar cvzf $(DISTNAME).tar.gz $(DISTNAME)
rm -rf $(DISTNAME)

distclean: clean
rm -f Makefile.config $(DISTNAME).tar.gz
rm -f Makefile.config src/myocamlbuild_config.ml

install: $(TARGET)
install -dv $(BIN_DIR)
Expand Down
2 changes: 1 addition & 1 deletion _tags
Expand Up @@ -2,4 +2,4 @@ true: use_menhir, use_menhir_table

true: package(menhirLib), package(yojson), package(findlib)

<outline_parser.*>: ext_tokens
<src/outline_parser.*>: ext_tokens
2 changes: 1 addition & 1 deletion configure
Expand Up @@ -75,7 +75,7 @@ if [ -d "$STDLIB_DIR" ]; then
BIN_DIR=$BIN_DIR
SHARE_DIR=$SHARE_DIR
END
cat >myocamlbuild_config.ml <<END
cat >src/myocamlbuild_config.ml <<END
let libdir = "$STDLIB_DIR";;
END
if [ "$EXIT" -eq 0 ]; then
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 47f759e

Please sign in to comment.