aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorLukas Rusak <lorusak@gmail.com>2023-02-03 19:33:43 -0800
committerLukas Rusak <lorusak@gmail.com>2023-02-04 14:02:18 -0800
commitd58f270fbcb816c5cdef6e94411559229c737fab (patch)
treeb2c22edb47e2207e5c0c78487d06ad39f7a82ce1 /tools
parent7d028c7e877817bc598c83705f8caf1743ce71b2 (diff)
tools/depends: bzip2: don't rebuild if already installed
Signed-off-by: Lukas Rusak <lorusak@gmail.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/depends/target/bzip2/Makefile6
1 files changed, 1 insertions, 5 deletions
diff --git a/tools/depends/target/bzip2/Makefile b/tools/depends/target/bzip2/Makefile
index c5ef21e165..4233e7f024 100644
--- a/tools/depends/target/bzip2/Makefile
+++ b/tools/depends/target/bzip2/Makefile
@@ -12,8 +12,6 @@ include ../../download-files.include
# configuration settings
CONFIGURE=./configure --prefix=$(PREFIX) --disable-shared
-LIBDYLIB=$(PLATFORM)/libbz2.a
-
all: .installed-$(PLATFORM)
@@ -22,10 +20,8 @@ $(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
cd $(PLATFORM); patch -p1 -i ../Makefile.patch
-$(LIBDYLIB): $(PLATFORM)
+.installed-$(PLATFORM): $(PLATFORM)
$(MAKE) -C $(PLATFORM) PREFIX=$(PREFIX) CC="$(CC)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" AR="$(AR)"
-
-.installed-$(PLATFORM): $(LIBDYLIB)
$(MAKE) -C $(PLATFORM) install PREFIX=$(PREFIX)
rm $(PREFIX)/bin/bzip2
touch $@