rules 479 Bytes
Newer Older
Ralf Treinen's avatar
Ralf Treinen committed
1 2
#!/usr/bin/make -f

3
include /usr/share/ocaml/ocamlvars.mk
Ralf Treinen's avatar
Ralf Treinen committed
4
ODESTDIR = $(CURDIR)/debian/libppx-deriving-yojson-ocaml-dev/usr/lib/ocaml
5 6 7 8 9
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
Ralf Treinen's avatar
Ralf Treinen committed
10 11 12 13 14 15

%:
	dh $@ --with ocaml

override_dh_auto_install:
	mkdir -p $(ODESTDIR)
16
	ocamlfind install -destdir $(ODESTDIR) ppx_deriving_yojson $(FILES)
Ralf Treinen's avatar
Ralf Treinen committed
17 18 19 20 21

override_dh_auto_test:
	# do nothing