Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3
4 # Uncomment this to turn on verbose mode.
5 #export DH_VERBOSE=1
6
7 DESTDIR=$(CURDIR)/debian/ocamlify
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_install
25 override_dh_auto_install:
26 mkdir -p '$(DESTDIR)/usr/bin'
27 $(SETUP) -install
28
29 .PHONY: override_dh_auto_clean
30 override_dh_auto_clean:
31 $(SETUP) -distclean
32
33 debian/ocamlify.1: debian/ocamlify.mkd
34 pandoc -s -w man $^ -o $@