diff options
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/debian/rules b/debian/rules index 6cf638c..5259ddc 100755 --- a/debian/rules +++ b/debian/rules @@ -21,6 +21,7 @@ CONFIGURE_ROOT=--prefix=/usr --mandir=\$${prefix}/share/man \ CONFIGURE_krb5=--with-krb5=/usr CONFIGURE_krb45=--with-krb4=/usr --with-krb5=/usr CONFIGURE_krb=--with-krb4=/usr +CONFIGURE_no-krb= CHECK=check # see /usr/share/doc/autotools-dev/README.Debian.gz @@ -34,6 +35,7 @@ else confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) endif +BUILD_VARIETALS=$(VARIETALS) no-krb # The autotools target adds forced build-time dependencies on # autotools-dev (for /usr/share/misc/config.*) and devscripts (for dch) @@ -59,13 +61,8 @@ configure: configure-stamp autotools configure-stamp: dh_testdir # Add here commands to configure the package. - for i in $(foreach i,$(VARIETALS),"$i:$(CONFIGURE_$i)"); do \ - IFS=: ; set $$i ; \ - mkdir $$1 || true; \ - (cd $$1 && CFLAGS="-g -O" ../configure $$2 $(CONFIGURE_ROOT)); \ - done - -mkdir no-krb - cd no-krb && CFLAGS="-g -O" ../configure $(CONFIGURE_ROOT) + mkdir -p $(BUILD_VARIETALS) + $(foreach VARIETY,$(BUILD_VARIETALS),(cd $(VARIETY) && CFLAGS="-g -O" ../configure $(CONFIGURE_$(VARIETY)) $(CONFIGURE_ROOT));) touch configure-stamp build: configure-stamp build-stamp |