File: rules

package info (click to toggle)
ocaml-fdkaac 0.2.0-1
  • links: PTS, VCS
  • area: contrib
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 528 kB
  • ctags: 110
  • sloc: sh: 3,234; ml: 267; ansic: 206; makefile: 99
file content (23 lines) | stat: -rwxr-xr-x 608 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
23
#!/usr/bin/make -f

include /usr/share/ocaml/ocamlvars.mk

DESTDIR := $(CURDIR)/debian/tmp/$(OCAML_STDLIB_DIR)

%:
	dh $@

override_dh_auto_build:
	$(MAKE) all doc

override_dh_auto_install:
	mkdir -p $(DESTDIR)
	$(MAKE) install OCAMLFIND_DESTDIR=$(DESTDIR) OCAMLFIND_LDCONF=ignore
	-rm debian/tmp/usr/lib/ocaml/fdkaac/fdkaac_loader.cmx
	dh_install --fail-missing

override_dh_auto_clean:
	[ ! -f Makefile ] || $(MAKE) clean
	dh_clean config.status config.log src/META src/Makefile Makefile
	rm -rf doc src/*.o src/*.cm* .pc config.h Makefile src/Makefile src/META doc config.log config.status
	dh_ocamlinit