<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">The $(LIB_NAME) target does not output a file called $(LIB_NAME),
so it and any dependents are always rebuilt, such as during
`make install`. Using the output file $(SLIB) as the target name
and in dependents avoids this.

Upstream-Status: Submitted (https://github.com/anestisb/android-simg2img/pull/33)

--- Makefile.orig	2020-06-19 10:02:43.000000000 -0500
+++ Makefile	2021-06-18 13:02:09.000000000 -0500
@@ -69,7 +69,7 @@
 .PHONY: default all clean install
 
 default: all
-all: $(LIB_NAME) simg2img simg2simg img2simg append2simg
+all: $(SLIB) simg2img simg2simg img2simg append2simg
 
 install: all
 	install -d $(PREFIX)/bin $(PREFIX)/lib $(PREFIX)/include/sparse
@@ -77,20 +77,20 @@
 	install -m 0755 $(SLIB) $(PREFIX)/lib
 	install -m 0644 $(HEADERS) $(PREFIX)/include/sparse
 
-$(LIB_NAME): $(LIB_OBJS)
+$(SLIB): $(LIB_OBJS)
 		$(AR) rc $(SLIB) $(LIB_OBJS)
 		$(RANLIB) $(SLIB)
 
-simg2img: $(SIMG2IMG_SRCS) $(LIB_NAME)
+simg2img: $(SIMG2IMG_SRCS) $(SLIB)
 		$(CXX) $(CPPFLAGS) $(LIB_INCS) -o simg2img $&lt; $(LDFLAGS)
 
-simg2simg: $(SIMG2SIMG_SRCS) $(LIB_NAME)
+simg2simg: $(SIMG2SIMG_SRCS) $(SLIB)
 		$(CXX) $(CPPFLAGS) $(LIB_INCS) -o simg2simg $&lt; $(LDFLAGS)
 
-img2simg: $(IMG2SIMG_SRCS) $(LIB_NAME)
+img2simg: $(IMG2SIMG_SRCS) $(SLIB)
 		$(CXX) $(CPPFLAGS) $(LIB_INCS) -o img2simg $&lt; $(LDFLAGS)
 
-append2simg: $(APPEND2SIMG_SRCS) $(LIB_NAME)
+append2simg: $(APPEND2SIMG_SRCS) $(SLIB)
 		$(CXX) $(CPPFLAGS) $(LIB_INCS) -o append2simg $&lt; $(LDFLAGS)
 
 %.o: %.cpp .depend
</pre></body></html>