File: rules

package info (click to toggle)
ledit 2.04-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 260 kB
  • sloc: ml: 2,215; makefile: 81; sh: 12
file content (20 lines) | stat: -rwxr-xr-x 520 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
#!/usr/bin/make -f

include /usr/share/ocaml/ocamlvars.mk

DESTDIR = $(CURDIR)/debian/ledit
LEDIT_LIBDIR = $(CURDIR)/debian/libledit-ocaml-dev/$(OCAML_STDLIB_DIR)/ledit

%:
	dh $@ --with ocaml,bash_completion

override_dh_auto_build:
	$(MAKE) CUSTOM=
	if [ $(OCAML_OPT_ARCH) ]; then $(MAKE) opt; fi

override_dh_auto_install-indep:
	$(MAKE) install BINDIR=$(DESTDIR)/usr/bin MANDIR=$(DESTDIR)/usr/share/man/man1

override_dh_auto_install-arch:
	mkdir -p $(LEDIT_LIBDIR)
	$(MAKE) install-lib LEDIT_LIBDIR=$(LEDIT_LIBDIR)