Skip to content

Commit

Permalink
lib: Avoid install dependency on build target
Browse files Browse the repository at this point in the history
install was depending on libefi.a which can sometimes trigger a project rebuild if make variables change

Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
  • Loading branch information
gmbr3 committed Sep 18, 2024
1 parent 8601323 commit ae2ca1e
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions lib/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ OBJS = $(FILES:%=%.o) ctors.o

SUBDIRS = ia32 x86_64 ia64 aarch64 arm mips64el riscv64 loongarch64 runtime

LIBDIRINSTALL = $(INSTALLROOT)$(LIBDIR)

all: libsubdirs libefi.a

.PHONY: libsubdirs
Expand All @@ -81,12 +79,8 @@ libefi.a: $(OBJS)
clean:
@rm -vf libefi.a *~ $(OBJS) */*.o

$(LIBDIRINSTALL):
mkdir -p $@

$(LIBDIRINSTALL)/libefi.a: libefi.a | $(LIBDIRINSTALL)
$(INSTALL) -m 644 $< $(dir $@)

install: $(LIBDIRINSTALL)/libefi.a
install:
mkdir -p $(INSTALLROOT)$(LIBDIR)
$(INSTALL) -m 644 libefi.a $(INSTALLROOT)$(LIBDIR)

include $(SRCDIR)/../Make.rules

0 comments on commit ae2ca1e

Please sign in to comment.