File: rules

package info (click to toggle)
ocaml-csv 2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 376 kB
  • sloc: ml: 2,101; makefile: 80
file content (28 lines) | stat: -rwxr-xr-x 600 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
#!/usr/bin/make -f
# -*- makefile -*-

DESTDIR=$(CURDIR)/debian/tmp

include /usr/share/ocaml/ocamlvars.mk

DB2MAN := /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl
XP := xsltproc -''-nonet

%:
	dh $@ --with ocaml

debian/csvtool.1: debian/csvtool.dbk
	$(XP) -o $@ $(DB2MAN) $<

override_dh_auto_build: debian/csvtool.1
	dune build -p csv

override_dh_auto_install:
	opam-installer --prefix=$(DESTDIR)/usr --libdir=../$(OCAML_STDLIB_DIR) csv.install
	rm -f $(DESTDIR)/usr/doc/csv/LICENSE.md

override_dh_auto_test:
	dune runtest -p csv

override_dh_missing:
	dh_missing --fail-missing