Whamcloud - gitweb
libext2fs: fix parents when modifying extents
[tools/e2fsprogs.git] / lib / Makefile.library
index a421447..1b86b02 100644 (file)
@@ -4,18 +4,22 @@ install-shlibs::
 
 uninstall-shlibs::
 
+real-subdirs::
+
 subdirs:: Makefile
-       @$(MAKE) -s real-subdirs
-       @touch subdirs
+       $(Q) $(MAKE) -s real-subdirs
+       $(Q) touch subdirs
 
 clean::
-       @$(RM) -f subdirs
+       $(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