* debian/rules:
[debian/cdck.git] / debian / rules
index 3f2c92a1a37814eeb8a3906db8fffd25b14a5029..ebfa2d98ea22f25ae7a9f25a25a17f8e9270dbdd 100755 (executable)
@@ -27,28 +27,29 @@ endif
 
 config.status: configure
        dh_testdir
+
+ifneq "$(wildcard /usr/share/misc/config.sub)" ""
+       cp -f /usr/share/misc/config.sub config.sub
+endif
+ifneq "$(wildcard /usr/share/misc/config.guess)" ""
+       cp -f /usr/share/misc/config.guess config.guess
+endif
+
        ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS=" -Wl,-z,defs"
 
 
 build: build-stamp
 build-stamp: config.status $(QUILT_STAMPFN)
        dh_testdir
-       $(MAKE)
+       $(MAKE) -j1
        touch $@
 
 clean: unpatch
        dh_testdir
        dh_testroot
+       rm -f config.sub config.guess
        rm -f build-stamp install-stamp
-
        [ ! -f Makefile ] || $(MAKE) distclean
-ifneq "$(wildcard /usr/share/misc/config.sub)" ""
-       cp -f /usr/share/misc/config.sub config.sub
-endif
-ifneq "$(wildcard /usr/share/misc/config.guess)" ""
-       cp -f /usr/share/misc/config.guess config.guess
-endif
-
        dh_clean
 
 install: install-stamp