| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
DESTDIR=$(CURDIR)/debian/ocamlmod |
| 8 |
|
| 9 |
include /usr/share/ocaml/ocamlvars.mk |
| 10 |
|
| 11 |
SETUP := ocaml -I +camlp-streams camlp_streams.cma setup.ml |
| 12 |
|
| 13 |
%: |
| 14 |
dh $@ --with ocaml |
| 15 |
|
| 16 |
.PHONY: override_dh_auto_configure |
| 17 |
override_dh_auto_configure: |
| 18 |
$(SETUP) -configure --prefix /usr --destdir '$(DESTDIR)' |
| 19 |
|
| 20 |
.PHONY: override_dh_auto_build |
| 21 |
override_dh_auto_build: |
| 22 |
$(SETUP) -build |
| 23 |
|
| 24 |
.PHONY: override_dh_auto_test |
| 25 |
override_dh_auto_test: |
| 26 |
$(SETUP) -test |
| 27 |
|
| 28 |
.PHONY: override_dh_auto_install |
| 29 |
override_dh_auto_install: |
| 30 |
mkdir -p '$(DESTDIR)/usr/bin' |
| 31 |
$(SETUP) -install |
| 32 |
|
| 33 |
.PHONY: override_dh_auto_clean |
| 34 |
override_dh_auto_clean: |
| 35 |
$(SETUP) -distclean |
| 36 |
|
| 37 |
debian/ocamlmod.1: debian/ocamlmod.mkd |
| 38 |
pandoc -s -w man $^ -o $@ |