Permalink
Browse files

Merge pull request #4 from samoht/master

Implement partial indentation
  • Loading branch information...
samoht committed Sep 21, 2012
2 parents 8858818 + f7f7252 commit f4b6699209a061fa3044eb55caeed7c4fdc256cb
Showing with 5,088 additions and 40 deletions.
  1. +18 −5 Makefile
  2. +4 −0 Makefile.config.in
  3. +0 −1 README.md
  4. +2 −0 _tags
  5. +4,652 −0 configure
  6. +26 −0 configure.ac
  7. +240 −0 m4/ocaml.m4
  8. +30 −9 src/block.ml
  9. +7 −1 src/block.mli
  10. +1 −0 src/globals.ml.in
  11. +66 −20 src/main.ml
  12. +18 −4 tests/Makefile
  13. +14 −0 tests/partial.mlp
  14. +10 −0 tests/semisemi.ml
View
@@ -1,12 +1,25 @@
+include Makefile.config
+
all: ocp-indent
@
-ocp-indent: _build/src/main.native
- ln -s $^ $@
-
-_build/src/main.native:
+ocp-indent:
ocamlbuild -I src main.native
clean:
- rm -f ocp-indent
ocamlbuild -clean
+
+install:
+ cp -f _build/src/main.native $(prefix)/bin/ocp-indent
+
+uninstall:
+ rm -f $(prefix)/bin/ocp-indent
+
+.PHONY: tests
+tests:
+ @$(MAKE) -C tests clean
+ @$(MAKE) -C tests
+
+configure: configure.ac
+ aclocal -I m4
+ autoconf
View
@@ -0,0 +1,4 @@
+datarootdir = @datarootdir@
+prefix=@prefix@
+mandir=@mandir@
+version=@PACKAGE_VERSION@
View
@@ -7,7 +7,6 @@ License: GPL v3.0
## TODO:
-- Implement local indentation
- Implement calling the program from Emacs, VI, etc.
- Implement customization per configuration file
- Implement tab-to-space, delete trailing spaces, etc.
View
2 _tags
@@ -0,0 +1,2 @@
+true: debug
+true: use_str
Oops, something went wrong.

0 comments on commit f4b6699

Please sign in to comment.