File: rules

package info (click to toggle)
cudf 0.10-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 688 kB
  • sloc: ml: 2,509; ansic: 871; makefile: 170; sh: 18
file content (18 lines) | stat: -rwxr-xr-x 433 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f
# -*- makefile -*-

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

%:
	dh $@ --with ocaml --buildsystem ocaml_dune

execute_after_dh_auto_build:
	$(MAKE) doc/cudf-check.1 c-lib
ifeq ($(OCAML_HAVE_OCAMLOPT),yes)
	$(MAKE) c-lib-opt
endif

execute_after_dh_auto_install:
	make -C c-lib/ -e install LIBDIR=/usr/lib/$(DEB_BUILD_GNU_TYPE) INCDIR=/usr/include/$(DEB_BUILD_GNU_TYPE)