kumquat-buildroot/package/nbd/nbd.mk
Peter Korsgaard 3fdf0bffb8 buildroot: silence ./configure step when building with 'make -s'
We have been passing -q to ./configure when using 'make -s' for
packages using Makefile.autotools.in for some time. Do the same
for packages using autotools, but not using the
Makefile.autotools.in infrastructure, taking care to not do it
for packages with hand written configure scripts.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2009-10-01 21:24:42 +02:00

58 lines
1.4 KiB
Makefile

#############################################################
#
# nbd (client only)
#
#############################################################
NBD_VERSION=2.9.11
NBD_SOURCE=nbd-$(NBD_VERSION).tar.bz2
NBD_CAT:=$(BZCAT)
NBD_SITE=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/nbd/
NBD_DIR=$(BUILD_DIR)/nbd-$(NBD_VERSION)
$(DL_DIR)/$(NBD_SOURCE):
$(call DOWNLOAD,$(NBD_SITE),$(NBD_SOURCE))
$(NBD_DIR)/.unpacked: $(DL_DIR)/$(NBD_SOURCE)
$(NBD_CAT) $(DL_DIR)/$(NBD_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
touch $@
$(NBD_DIR)/.configured: $(NBD_DIR)/.unpacked
(cd $(NBD_DIR); rm -rf config.cache; \
$(TARGET_CONFIGURE_OPTS) \
$(TARGET_CONFIGURE_ARGS) \
CC=$(TARGET_CC) \
./configure $(QUIET) \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--prefix=/usr \
)
touch $@
$(NBD_DIR)/nbd-client: $(NBD_DIR)/.configured
$(MAKE) -C $(NBD_DIR) nbd-client
$(TARGET_DIR)/sbin/nbd-client: $(NBD_DIR)/nbd-client
cp $< $@
$(STRIPCMD) $@
nbd: libglib2 $(TARGET_DIR)/sbin/nbd-client
nbd-source: $(DL_DIR)/$(NBD_SOURCE)
nbd-clean:
rm -f $(TARGET_DIR)/sbin/nbd-client
-$(MAKE) -C $(NBD_DIR) clean
nbd-dirclean:
rm -rf $(NBD_DIR)
#############################################################
#
# Toplevel Makefile options
#
#############################################################
ifeq ($(BR2_PACKAGE_NBD),y)
TARGETS+=nbd
endif