| 1 |
#!/usr/bin/make -f |
| 2 |
# -*- makefile -*- |
| 3 |
# Sample debian/rules that uses debhelper. |
| 4 |
# GNU copyright 1997 to 1999 by Joey Hess. |
| 5 |
|
| 6 |
# Uncomment this to turn on verbose mode. |
| 7 |
#export DH_VERBOSE=1 |
| 8 |
|
| 9 |
include /usr/share/ocaml/ocamlvars.mk |
| 10 |
|
| 11 |
DESTDIR = $(CURDIR)/debian/tmp |
| 12 |
|
| 13 |
%: |
| 14 |
dh $@ --with ocaml --without autoreconf |
| 15 |
|
| 16 |
.PHONY: override_dh_auto_configure |
| 17 |
override_dh_auto_configure: |
| 18 |
aclocal -I support |
| 19 |
autoconf |
| 20 |
chmod +x configure |
| 21 |
./configure |
| 22 |
|
| 23 |
.PHONY: override_dh_auto_build |
| 24 |
override_dh_auto_build: |
| 25 |
$(MAKE) all |
| 26 |
ifneq ($(OCAML_OPT_ARCH),) |
| 27 |
$(MAKE) opt |
| 28 |
endif |
| 29 |
$(MAKE) doc |
| 30 |
|
| 31 |
.PHONY: override_dh_auto_clean |
| 32 |
override_dh_auto_clean: |
| 33 |
[ ! -f config.make ] || $(MAKE) clean |
| 34 |
$(RM) -f aclocal.m4 config.log config.make config.status configure |
| 35 |
$(RM) -rf doc |
| 36 |
|
| 37 |
.PHONY: override_dh_auto_install |
| 38 |
override_dh_auto_install: |
| 39 |
mkdir -p $(DESTDIR) |
| 40 |
$(MAKE) install DESTDIR=$(DESTDIR) |