File: rules

package info (click to toggle)
extlib 1.5-6
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 424 kB
  • ctags: 972
  • sloc: ml: 7,041; makefile: 39; sh: 34
file content (22 lines) | stat: -rwxr-xr-x 613 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
#!/usr/bin/make -f
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/ocaml.mk

PKGNAME = libextlib-ocaml-dev

PKGDIR = $(CURDIR)/debian/$(PKGNAME)
DESTDIR = $(PKGDIR)$(OCAML_STDLIB_DIR)/extlib
DOCDIR = $(PKGDIR)/usr/share/doc/$(PKGNAME)/

common-build-arch::
	mkdir -p $(DESTDIR)/ $(DOCDIR)/
	if [ -x /usr/bin/ocamlopt ]; then \
		ocaml install.ml -d $(DESTDIR)/ -b -n -doc; \
	else \
		ocaml install.ml -d $(DESTDIR)/ -b -doc; \
	fi
	cp -a extLib.ml *.mli $(DESTDIR)/
	cp -a META.txt $(DESTDIR)/META
	mv $(DESTDIR)/extlib-doc/ $(DOCDIR)/html

include /usr/share/cdbs/1/rules/dpatch.mk