File: rules

package info (click to toggle)
mlpost 0.8.2-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 3,976 kB
  • sloc: ml: 19,575; javascript: 4,047; makefile: 608; ansic: 34; lisp: 19; sh: 15
file content (30 lines) | stat: -rwxr-xr-x 742 bytes parent folder | download
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
#!/usr/bin/make -f
# -*- makefile -*-

include /usr/share/ocaml/ocamlvars.mk
DESTDIR = $(CURDIR)/debian/tmp

export OCAMLFIND_DESTDIR = $(OCAML_STDLIB_DIR)
export OCAMLFIND_LDCONF = ignore

EXAMPLES_TARBALL = debian/examples.tar.gz

%:
	dh $@ --with ocaml

$(EXAMPLES_TARBALL):
	tar -czf $(EXAMPLES_TARBALL) --exclude=parse.ml examples

override_dh_auto_configure: $(EXAMPLES_TARBALL)
	./configure --prefix=/usr

override_dh_auto_install:
ifneq (,$(findstring libmlpost-ocaml-doc,$(shell dh_listpackages)))
	$(MAKE) doc
endif
	mkdir -p $(DESTDIR)$(OCAMLFIND_DESTDIR)
	$(MAKE) install DESTDIR= OCAMLFIND_DESTDIR=$(DESTDIR)$(OCAMLFIND_DESTDIR) BINDIR=$(DESTDIR)/usr/bin MANDIR=$(DESTDIR)/usr/share/man

override_dh_auto_test:

override_dh_dwz: