Use $< automatic variable to simplify some commands.
authorDiego Biurrun <diego@biurrun.de>
Sun, 22 Mar 2009 13:00:15 +0000 (13:00 +0000)
committerDiego Biurrun <diego@biurrun.de>
Sun, 22 Mar 2009 13:00:15 +0000 (13:00 +0000)
Originally committed as revision 18143 to svn://svn.ffmpeg.org/ffmpeg/trunk

subdir.mak

index df5bb8a..997f552 100644 (file)
@@ -39,7 +39,7 @@ endif
 
 install-lib$(NAME)-shared: $(SUBDIR)$(SLIBNAME)
        install -d "$(SHLIBDIR)"
 
 install-lib$(NAME)-shared: $(SUBDIR)$(SLIBNAME)
        install -d "$(SHLIBDIR)"
-       install -m 755 $(SUBDIR)$(SLIBNAME) "$(SHLIBDIR)/$(SLIBNAME_WITH_VERSION)"
+       install -m 755 $$< "$(SHLIBDIR)/$(SLIBNAME_WITH_VERSION)"
        $(STRIP) "$(SHLIBDIR)/$(SLIBNAME_WITH_VERSION)"
        cd "$(SHLIBDIR)" && \
                $(LN_S) $(SLIBNAME_WITH_VERSION) $(SLIBNAME_WITH_MAJOR)
        $(STRIP) "$(SHLIBDIR)/$(SLIBNAME_WITH_VERSION)"
        cd "$(SHLIBDIR)" && \
                $(LN_S) $(SLIBNAME_WITH_VERSION) $(SLIBNAME_WITH_MAJOR)
@@ -49,7 +49,7 @@ install-lib$(NAME)-shared: $(SUBDIR)$(SLIBNAME)
 
 install-lib$(NAME)-static: $(SUBDIR)$(LIBNAME)
        install -d "$(LIBDIR)"
 
 install-lib$(NAME)-static: $(SUBDIR)$(LIBNAME)
        install -d "$(LIBDIR)"
-       install -m 644 $(SUBDIR)$(LIBNAME) "$(LIBDIR)"
+       install -m 644 $$< "$(LIBDIR)"
        $(LIB_INSTALL_EXTRA_CMD)
 
 install-headers::
        $(LIB_INSTALL_EXTRA_CMD)
 
 install-headers::