File: rules

package info (click to toggle)
ocamlcreal 0.7-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 448 kB
  • sloc: ml: 2,699; ansic: 1,067; makefile: 15
file content (22 lines) | stat: -rwxr-xr-x 482 bytes parent folder | download | duplicates (2)
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

PACKAGE=libcreal-ocaml-dev

include /usr/share/ocaml/ocamlvars.mk

override_dh_auto_build:
	$(MAKE) depend
	$(MAKE)
	$(MAKE) test

override_dh_auto_clean:
	[ ! -f Makefile ] || $(MAKE) clean
	rm -f config.status

override_dh_auto_install:
	mkdir -p $(CURDIR)/debian/$(PACKAGE)$(OCAML_STDLIB_DIR)/creal
	$(MAKE) install LIBDIR=$(CURDIR)/debian/$(PACKAGE)$(OCAML_STDLIB_DIR)/creal
	cp debian/META debian/$(PACKAGE)$(OCAML_STDLIB_DIR)/creal

%:
	dh $@ --with ocaml