File: rules

package info (click to toggle)
ocaml-getopt 0.0.20040811-11
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 100 kB
  • sloc: ml: 116; makefile: 43
file content (22 lines) | stat: -rwxr-xr-x 534 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/ocaml/ocamlvars.mk

override_dh_auto_build:
ifneq ($(OCAML_OPT_ARCH),)
	$(MAKE) allopt
else
	$(MAKE) all
endif

override_dh_auto_clean:
	$(MAKE) clean

override_dh_auto_install:
	dh_install doc/* usr/share/doc/libgetopt-ocaml-dev/html/
	mkdir -p $(CURDIR)/debian/libgetopt-ocaml-dev$(OCAML_STDLIB_DIR)
	$(MAKE) install OCAMLFIND_DESTDIR=$(CURDIR)/debian/libgetopt-ocaml-dev$(OCAML_STDLIB_DIR)
	cp getopt.mli $(CURDIR)/debian/libgetopt-ocaml-dev$(OCAML_STDLIB_DIR)/getopt

%:
	dh $@ --with ocaml