svn commit: trunk/buildroot/package/mplayer
Quoted 11 lines · ulf at uclibc.org
Author: ulf
Date: 2007-07-23 05:40:43 -0700 (Mon, 23 Jul 2007) New Revision: 19229Log:
Cleanup of mplayer package[...]
$(MPLAYER_DIR)/$(MPLAYER_BINARY): $(MPLAYER_DIR)/.configured
$(MAKE) -C $(MPLAYER_DIR)
buildroot/package/mplayer/mplayer.mk line 59
Quoted 8 lines
buildroot/package/mplayer/mplayer.mk +2
-2- @touch -c $@ + touch -c $@ $(TARGET_DIR)/$(MPLAYER_TARGET_BINARY): $(MPLAYER_DIR)/$(MPLAYER_BINARY) $(INSTALL) -m 0755 -D $(MPLAYER_DIR)/$(MPLAYER_BINARY) $(TARGET_DIR)/$(MPLAYER_TARGET_BINARY) -$(STRIP) --strip-unneeded $(TARGET_DIR)/$(MPLAYER_TARGET_BINARY) - @touch -c $@ + touch -c $@
I don't see the logic for these last two touch commands. Sure "-c" says "do not create", but they seem unnecessary.
Allan
Author: ulf
Date: 2007-07-23 05:40:43 -0700 (Mon, 23 Jul 2007) New Revision: 19229
Log:
Cleanup of mplayer package
Modified:
trunk/buildroot/package/mplayer/mplayer.mk
Changeset:
Modified: trunk/buildroot/package/mplayer/mplayer.mk
===================================================================
buildroot/package/mplayer/mplayer.mk +9 -8
@@ -3,10 +3,10 @@ # mplayer # ############################################################# -MPLAYER_VER:=1.0rc1 -MPLAYER_SOURCE:=MPlayer-$(MPLAYER_VER).tar.bz2 +MPLAYER_VERSION:=1.0rc1 +MPLAYER_SOURCE:=MPlayer-$(MPLAYER_VERSION).tar.bz2 MPLAYER_SITE:=http://www7.mplayerhq.hu/MPlayer/releases -MPLAYER_DIR:=$(BUILD_DIR)/MPlayer-$(MPLAYER_VER) +MPLAYER_DIR:=$(BUILD_DIR)/MPlayer-$(MPLAYER_VERSION) MPLAYER_CAT:=$(BZCAT) MPLAYER_BINARY:=mplayer MPLAYER_TARGET_BINARY:=usr/bin/$(MPLAYER_BINARY)
@@ -22,12 +22,13 @@ $(MPLAYER_DIR)/.unpacked: $(DL_DIR)/$(MPLAYER_SOURCE) $(MPLAYER_CAT) $(DL_DIR)/$(MPLAYER_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - - toolchain/patch-kernel.sh $(MPLAYER_DIR) package/mplayer/ mplayer-$(MPLAYER_VER)\*.patch\* - @touch $@ + toolchain/patch-kernel.sh $(MPLAYER_DIR) package/mplayer/ mplayer-$(MPLAYER_VERSION)\*.patch\* + touch $@ $(MPLAYER_DIR)/.configured: $(MPLAYER_DIR)/.unpacked (cd $(MPLAYER_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ + $(TARGET_CONFIGURE_ARGS) \ CFLAGS="$(TARGET_CFLAGS)" \ LDFLAGS="$(TARGET_LDFLAGS)" \ ./configure \
@@ -46,16 +47,16 @@ --disable-tv \ --enable-dynamic-plugins \ ); - @touch $@ + touch $@ $(MPLAYER_DIR)/$(MPLAYER_BINARY): $(MPLAYER_DIR)/.configured $(MAKE) -C $(MPLAYER_DIR) - @touch -c $@ + touch -c $@ $(TARGET_DIR)/$(MPLAYER_TARGET_BINARY): $(MPLAYER_DIR)/$(MPLAYER_BINARY) $(INSTALL) -m 0755 -D $(MPLAYER_DIR)/$(MPLAYER_BINARY) $(TARGET_DIR)/$(MPLAYER_TARGET_BINARY) -$(STRIP) --strip-unneeded $(TARGET_DIR)/$(MPLAYER_TARGET_BINARY) - @touch -c $@ + touch -c $@ mplayer: uclibc libmad $(TARGET_DIR)/$(MPLAYER_TARGET_BINARY)
Quoted 15 lines · Allan Clark
Quoted 14 lines · ulf at uclibc.org
Author: ulf
Date: 2007-07-23 05:40:43 -0700 (Mon, 23 Jul 2007) New Revision: 19229Log:
Cleanup of mplayer package[...]
$(MPLAYER_DIR)/$(MPLAYER_BINARY): $(MPLAYER_DIR)/.configured
$(MAKE) -C $(MPLAYER_DIR)(quoted diff) +1
-1- @touch -c $@ + touch -c $@
Quoted 8 lines
Review
Quoted 5 lines
$(TARGET_DIR)/$(MPLAYER_TARGET_BINARY): $(MPLAYER_DIR)/$(MPLAYER_BINARY)
$(INSTALL) -m 0755 -D $(MPLAYER_DIR)/$(MPLAYER_BINARY) $(TARGET_DIR)/$(MPLAYER_TARGET_BINARY) -$(STRIP) --strip-unneeded $(TARGET_DIR)/$(MPLAYER_TARGET_BINARY)(quoted diff) +1
-1- @touch -c $@ + touch -c $@I don't see the logic for these last two touch commands. Sure "-c" says "do not create", but they seem unnecessary.
Agree, all the "touch -c <some binary file given by the Makefile rule>" does not do anything useful. Touch will return 0, and Makefile will think it was a success.
~ > touch -c doesnotexist
~ > echo $?
0
~ >
Signature · 7 lines
With kind regards, Hans-Christian Egtvedt, siv.ing. (M.Sc.) Applications Engineer - AVR32 System Solutions - Atmel Norway -- Mvh Hans-Christian Egtvedt