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
|
#!/usr/bin/make -f
include /usr/share/ocaml/ocamlvars.mk
DEB_DESTDIR := $(CURDIR)/debian/planets
ifeq ($(OCAML_HAVE_OCAMLOPT),yes)
TARGET=planets
else
TARGET=planets.bc
endif
%:
dh $@ --with ocaml
override_dh_auto_build:
$(MAKE) $(TARGET)
override_dh_auto_install:
install -D $(TARGET) $(DEB_DESTDIR)/usr/bin/planets
install -D -m 644 debian/README.examples \
$(DEB_DESTDIR)/usr/share/doc/planets/examples/README
install -D -m 644 CHANGES \
$(DEB_DESTDIR)/usr/share/doc/planets/changelog
override_dh_gencontrol:
dh_gencontrol -- -VF:OCamlABI="$(OCAML_ABI)"
|