From dc6495561aa302e7193ec235183f858cebbe5979 Mon Sep 17 00:00:00 2001 From: Stefano Zacchiroli Date: Wed, 3 Jan 2007 19:16:49 +0000 Subject: [PATCH] more elegant handling of all/opt building --- DEVEL/ocaml-http/debian/rules | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/DEVEL/ocaml-http/debian/rules b/DEVEL/ocaml-http/debian/rules index b6652614f..51b217617 100755 --- a/DEVEL/ocaml-http/debian/rules +++ b/DEVEL/ocaml-http/debian/rules @@ -5,9 +5,9 @@ include /usr/share/cdbs/1/class/ocaml.mk PKGNAME = libhttp-ocaml-dev -DEB_MAKE_INSTALL_TARGET = install DESTDIR=$(CURDIR)/debian/$(PKGNAME)$(OCAML_STDLIB_DIR) - -ifeq ($(HAVE_OCAMLOPT),yes) -build/$(PKGNAME):: - $(MAKE) opt +DEB_MAKE_BUILD_TARGET = all +ifeq ($(OCAML_HAVE_OCAMLOPT),yes) +DEB_MAKE_BUILD_TARGET += opt endif + +DEB_MAKE_INSTALL_TARGET = install DESTDIR=$(CURDIR)/debian/$(PKGNAME)$(OCAML_STDLIB_DIR) -- 2.39.2