forked from axiles/ocaml-efl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
50 lines (37 loc) · 1.27 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
OCAMLFIND_OPT= -destdir $(DESTDIR)$(OCAMLFIND_DESTDIR) \
-ldconf $(DESTDIR)$(OCAMLFIND_LDCONF)
.PHONY:examples
EXTRA_DIST=src examples/*.ml _tags examples/install.sh examples/uninstall.sh \
autogen.sh
all-local:
@$(OCAMLBUILD) src/efl.cma src/efl.cmxa src/efl.cmxs
byte:
@$(OCAMLBUILD) src/efl.cma
native:
@$(OCAMLBUILD) src/efl.cmxa src/efl.cmxs
install:
@mkdir -p $(DESTDIR)$(OCAMLFIND_DESTDIR)
@$(OCAMLFIND) install $(OCAMLFIND_OPT) efl META _build/src/efl.cma \
_build/src/efl.cmi -optional _build/src/efl.cmxa \
-optional _build/src/efl.cmxs _build/src/dllefl_stubs.so \
-optional _build/src/libefl_stubs.a -optional _build/src/efl.a
@src/install-doc.sh $(DESTDIR)$(docdir)
@examples/install.sh $(DESTDIR)$(bindir)/ocaml-efl_
uninstall:
@$(OCAMLFIND) remove $(OCAMLFIND_OPT) efl
@src/uninstall-doc.sh $(DESTDIR)$(docdir)
@examples/uninstall.sh $(DESTDIR)$(bindir)/ocaml-efl_
doc:
@$(OCAMLBUILD) src/efl_doc.docdir/index.html
examples:
@$(OCAMLBUILD) ex
clean-local:
@$(OCAMLBUILD) -clean
@echo ""
distclean-local:
rm -f examples/list.txt
distcheck: dist
tar -xzf $(PACKAGE_NAME)-$(PACKAGE_VERSION).tar.gz
cd $(PACKAGE_NAME)-$(PACKAGE_VERSION) && \
./configure && make && make doc && make examples && make distclean
rm -rf $(PACKAGE_NAME)-$(PACKAGE_VERSION)