Skip to content
Browse files

Add a basic META.in file

  • Loading branch information...
1 parent 7d133a4 commit 7f7724c9245210cb8888f91c137fc0092d180694 @samoht samoht committed
Showing with 9 additions and 1 deletion.
  1. +4 −0 META.in
  2. +5 −1 Makefile
View
4 META.in
@@ -0,0 +1,4 @@
+version = "@VERSION@"
+description = "OCaml Package Manager base API"
+archive(byte) = "opam-lib.cma"
+archive(native) = "opam-lib.cmxa"
View
6 Makefile
@@ -7,7 +7,7 @@ TARGETS = opam opam-mk-repo opam-repo-convert-0.3
.PHONY: all
-all: $(LOCAL_OCPBUILD)
+all: $(LOCAL_OCPBUILD) META
$(MAKE) clone
$(MAKE) compile
@@ -56,6 +56,10 @@ tests-git:
%-install:
cp _obuild/$*/$*.asm $(BIN)/$*
+PRODUCT_VERSION=$(shell grep "let version" src/globals.ml | cut -f 2 -d \")
+META: META.in
+ sed 's/@VERSION@/$(PRODUCT_VERSION)/g' < $< > $@
+
.PHONY: install
install:
$(MAKE) $(TARGETS:%=%-install)

0 comments on commit 7f7724c

Please sign in to comment.
Something went wrong with that request. Please try again.