| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | include /usr/share/ocaml/ocamlvars.mk |
| 4 | |
| 5 | DESTDIR = $(CURDIR)/debian/ledit |
| 6 | LEDIT_LIBDIR = $(CURDIR)/debian/libledit-ocaml-dev/$(OCAML_STDLIB_DIR)/ledit |
| 7 | |
| 8 | %: |
| 9 | dh $@ --with ocaml,bash_completion |
| 10 | |
| 11 | override_dh_auto_build: |
| 12 | $(MAKE) CUSTOM= |
| 13 | if [ $(OCAML_OPT_ARCH) ]; then $(MAKE) opt; fi |
| 14 | |
| 15 | override_dh_auto_install: |
| 16 | $(MAKE) install BINDIR=$(DESTDIR)/usr/bin MANDIR=$(DESTDIR)/usr/share/man/man1 |
| 17 | mkdir -p $(LEDIT_LIBDIR) |
| 18 | $(MAKE) install-lib LEDIT_LIBDIR=$(LEDIT_LIBDIR) |