Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

modules.txtを自動生成するようにした

  • Loading branch information...
commit f82f1cae31b2526f04b3710436e6a9fa03050691 1 parent 14e27ba
@mzp authored
Showing with 34 additions and 2 deletions.
  1. +9 −2 OMakefile
  2. +25 −0 modules.txt → modules-init.sh
View
11 OMakefile
@@ -35,12 +35,19 @@ PROGRAM = index.cgi
OCAML_OTHER_LIBS += toplevellib
# OCAML_LIB_FLAGS +=
#
-.DEFAULT: $(OCamlProgram $(PROGRAM), $(FILES))
-.PHONY: clean
+.PHONY: clean all
+
+all: $(OCamlProgram $(PROGRAM), $(FILES)) modules.txt
+
+modules.txt : modules-init.sh
+ ./modules-init.sh
+
clean:
rm -f *.cm[oix] *.o *.omc $(PROGRAM) *.run *~ *.annot
+.DEFAULT: all
+
# test
public.OUnitTest(name,files) =
protected.test_file = $(addsuffix Test,$(name))
View
25 modules.txt → modules-init.sh 100644 → 100755
@@ -1,3 +1,6 @@
+#!/bin/sh
+
+cat <<EOF > modules.txt
- stdlib
Pervasives
Arg
@@ -39,3 +42,25 @@ String
StringLabels
Sys
Weak
+- extlib
+PATH:: `ocamlfind query extlib`
+IO
+Base64
+BitSet
+Dllist
+DynArray
+Enum
+ExtArray
+ExtHashtbl
+ExtList
+ExtString
+Global
+OptParse
+Option
+PMap
+RefList
+Std
+UChar
+UTF8
+Unzip
+EOF
Please sign in to comment.
Something went wrong with that request. Please try again.