1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
#!/usr/bin/make -f
# -*- makefile -*-
include /usr/share/ocaml/ocamlvars.mk
DESTDIR := $(CURDIR)/debian/tmp
export DUNE_CACHE := disabled
export PATH := $(CURDIR)/debian/sh-override:$(PATH)
%:
dh $@ --with ocaml --buildsystem ocaml_dune
execute_after_dh_auto_clean:
rm -rf doc/api-html local/etc local/var/log local/var/run
rm -rf debian/sh-override
override_dh_auto_configure:
mkdir -p debian/sh-override
ln -sfT /bin/bash debian/sh-override/sh
mkdir -p local/etc
sh configure \
--temproot $(DESTDIR) \
--prefix /usr \
--bindir /usr/bin \
--libdir $(OCAML_STDLIB_DIR) \
--mandir /usr/share/man/man1 \
--docdir /usr/share/doc/ocsigenserver/api-html \
--staticpagesdir /usr/share/ocsigenserver \
--ocsigen-user ocsigen \
--ocsigen-group ocsigen
|