X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lib%2FMakefile.library;h=1b86b0235587a13e62dc6e6d9ec0df4142bce6a9;hb=855c5e0dfbb8aee295a0a0baa6278fcfa6c1c8a4;hp=5cff608dc8a336f5efc0bc3e7403efd875a49e8a;hpb=f923bf2a81e349f95310458651d7fe9a7291058b;p=tools%2Fe2fsprogs.git diff --git a/lib/Makefile.library b/lib/Makefile.library index 5cff608..1b86b02 100644 --- a/lib/Makefile.library +++ b/lib/Makefile.library @@ -4,13 +4,22 @@ install-shlibs:: uninstall-shlibs:: -subdirs:: +real-subdirs:: + +subdirs:: Makefile + $(Q) $(MAKE) -s real-subdirs + $(Q) touch subdirs + +clean:: + $(Q) $(RM) -f subdirs $(LIBRARY).a: $(OBJS) - @echo " GEN_LIB $@" - @(if test -r $@; then $(RM) -f $@.bak && $(MV) $@ $@.bak; fi) - @$(ARGEN) $@ $(OBJS) + $(E) " GEN_LIB $@" + $(Q) (if test -r $@; then $(RM) -f $@.bak && $(MV) $@ $@.bak; fi) + $(Q) $(ARGEN) $@ $(OBJS) -@$(RANLIB) $@ - @$(RM) -f ../$@ - @$(LN) $@ ../$@ + $(Q) $(RM) -f ../$@ + $(Q) (cd ..; $(LN) $(LINK_BUILD_FLAGS) \ + `echo $(my_dir) | sed -e 's;lib/;;'`/$@ $@) +$(LIB)/$(LIBRARY).a: $(LIBRARY).a