mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-08-03 16:37:43 +00:00
Use DISTCC_BUILDDIR instead of DISTCC_DIR as that environment variable is
used by distcc itself, causing havoc if you compile buildroot under distcc.
This commit is contained in:
parent
1ff5f164f0
commit
935c1df694
@ -7,7 +7,7 @@ DISTCC_VERSION:=2.18.3
|
|||||||
DISTCC_SOURCE:=distcc-$(DISTCC_VERSION).tar.bz2
|
DISTCC_SOURCE:=distcc-$(DISTCC_VERSION).tar.bz2
|
||||||
DISTCC_CAT:=$(BZCAT)
|
DISTCC_CAT:=$(BZCAT)
|
||||||
DISTCC_SITE:=http://distcc.samba.org/ftp/distcc/
|
DISTCC_SITE:=http://distcc.samba.org/ftp/distcc/
|
||||||
DISTCC_DIR:=$(BUILD_DIR)/distcc-$(DISTCC_VERSION)
|
DISTCC_BUILDDIR:=$(BUILD_DIR)/distcc-$(DISTCC_VERSION)
|
||||||
DISTCC_BINARY:=distcc
|
DISTCC_BINARY:=distcc
|
||||||
DISTCC_TARGET_BINARY:=usr/bin/distcc
|
DISTCC_TARGET_BINARY:=usr/bin/distcc
|
||||||
|
|
||||||
@ -16,13 +16,13 @@ $(DL_DIR)/$(DISTCC_SOURCE):
|
|||||||
|
|
||||||
distcc-source: $(DL_DIR)/$(CVS_SOURCE)
|
distcc-source: $(DL_DIR)/$(CVS_SOURCE)
|
||||||
|
|
||||||
$(DISTCC_DIR)/.unpacked: $(DL_DIR)/$(DISTCC_SOURCE)
|
$(DISTCC_BUILDDIR)/.unpacked: $(DL_DIR)/$(DISTCC_SOURCE)
|
||||||
$(DISTCC_CAT) $(DL_DIR)/$(DISTCC_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
$(DISTCC_CAT) $(DL_DIR)/$(DISTCC_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
||||||
$(CONFIG_UPDATE) $(DISTCC_DIR)
|
$(CONFIG_UPDATE) $(DISTCC_BUILDDIR)
|
||||||
touch $(DISTCC_DIR)/.unpacked
|
touch $(DISTCC_BUILDDIR)/.unpacked
|
||||||
|
|
||||||
$(DISTCC_DIR)/.configured: $(DISTCC_DIR)/.unpacked
|
$(DISTCC_BUILDDIR)/.configured: $(DISTCC_BUILDDIR)/.unpacked
|
||||||
(cd $(DISTCC_DIR); rm -rf config.cache; \
|
(cd $(DISTCC_BUILDDIR); rm -rf config.cache; \
|
||||||
$(TARGET_CONFIGURE_OPTS) \
|
$(TARGET_CONFIGURE_OPTS) \
|
||||||
$(TARGET_CONFIGURE_ARGS) \
|
$(TARGET_CONFIGURE_ARGS) \
|
||||||
./configure \
|
./configure \
|
||||||
@ -43,24 +43,24 @@ $(DISTCC_DIR)/.configured: $(DISTCC_DIR)/.unpacked
|
|||||||
--without-gtk \
|
--without-gtk \
|
||||||
--without-gnome \
|
--without-gnome \
|
||||||
)
|
)
|
||||||
touch $(DISTCC_DIR)/.configured
|
touch $(DISTCC_BUILDDIR)/.configured
|
||||||
|
|
||||||
$(DISTCC_DIR)/$(DISTCC_BINARY): $(DISTCC_DIR)/.configured
|
$(DISTCC_BUILDDIR)/$(DISTCC_BINARY): $(DISTCC_BUILDDIR)/.configured
|
||||||
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(DISTCC_DIR)
|
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(DISTCC_BUILDDIR)
|
||||||
|
|
||||||
$(TARGET_DIR)/$(DISTCC_TARGET_BINARY): $(DISTCC_DIR)/$(DISTCC_BINARY)
|
$(TARGET_DIR)/$(DISTCC_TARGET_BINARY): $(DISTCC_BUILDDIR)/$(DISTCC_BINARY)
|
||||||
install -D $(DISTCC_DIR)/$(DISTCC_BINARY)d $(TARGET_DIR)/$(DISTCC_TARGET_BINARY)d
|
install -D $(DISTCC_BUILDDIR)/$(DISTCC_BINARY)d $(TARGET_DIR)/$(DISTCC_TARGET_BINARY)d
|
||||||
install -D $(DISTCC_DIR)/$(DISTCC_BINARY) $(TARGET_DIR)/$(DISTCC_TARGET_BINARY)
|
install -D $(DISTCC_BUILDDIR)/$(DISTCC_BINARY) $(TARGET_DIR)/$(DISTCC_TARGET_BINARY)
|
||||||
|
|
||||||
distcc: uclibc $(TARGET_DIR)/$(DISTCC_TARGET_BINARY)
|
distcc: uclibc $(TARGET_DIR)/$(DISTCC_TARGET_BINARY)
|
||||||
|
|
||||||
distcc-clean:
|
distcc-clean:
|
||||||
rm -f $(TARGET_DIR)/$(DISTCC_TARGET_BINARY)
|
rm -f $(TARGET_DIR)/$(DISTCC_TARGET_BINARY)
|
||||||
rm -f $(TARGET_DIR)/$(DISTCC_TARGET_BINARY)d
|
rm -f $(TARGET_DIR)/$(DISTCC_TARGET_BINARY)d
|
||||||
-$(MAKE) -C $(DISTCC_DIR) clean
|
-$(MAKE) -C $(DISTCC_BUILDDIR) clean
|
||||||
|
|
||||||
distcc-dirclean:
|
distcc-dirclean:
|
||||||
rm -rf $(DISTCC_DIR)
|
rm -rf $(DISTCC_BUILDDIR)
|
||||||
#############################################################
|
#############################################################
|
||||||
#
|
#
|
||||||
# Toplevel Makefile options
|
# Toplevel Makefile options
|
||||||
|
Loading…
x
Reference in New Issue
Block a user