File: rules

package info (click to toggle)
ppx-deriving-yojson 3.1-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 208 kB
  • sloc: ml: 1,306; makefile: 57; sh: 15
file content (22 lines) | stat: -rwxr-xr-x 522 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
ODESTDIR = $(CURDIR)/debian/libppx-deriving-yojson-ocaml-dev/usr/lib/ocaml
ifeq ($(OCAML_HAVE_OCAMLOPT),yes)
	FILES := pkg/META _build/src/*.a _build/src/*.c* _build/src/*.mli
else
	FILES := pkg/META _build/src/*.c* _build/src/*.mli
endif

%:
	dh $@ --with ocaml

override_dh_auto_install:
	mkdir -p $(ODESTDIR)
	ocamlfind install -destdir $(ODESTDIR) ppx_deriving_yojson $(FILES)

override_dh_auto_test:
	# do nothing

override_dh_dwz:
	dh_dwz --no-dwz-multifile