diff options
author | Volker Grabsch <vog@notjusthosting.com> | 2010-11-18 03:00:31 (GMT) |
---|---|---|
committer | Volker Grabsch <vog@notjusthosting.com> | 2010-11-18 03:00:31 (GMT) |
commit | d379c295e64eb4ebc251b6e27af3d60e3d5cbc87 (patch) | |
tree | 5bd88b00fb27ee2c357c2662eaf6d72ed0be6cbf | |
parent | 05de57144c7510791db6fe961b619c68c62995c3 (diff) | |
download | mxe-d379c295e64eb4ebc251b6e27af3d60e3d5cbc87.zip mxe-d379c295e64eb4ebc251b6e27af3d60e3d5cbc87.tar.gz mxe-d379c295e64eb4ebc251b6e27af3d60e3d5cbc87.tar.bz2 |
improved coding style: make use of the "-f" option of "ln"
-rw-r--r-- | Makefile | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -89,8 +89,7 @@ $(PREFIX)/installed/$(1): $(TOP_DIR)/src/$(1).mk \ @if ! $(call CHECK_PKG_ARCHIVE,$(1)); then \ echo '[download] $(1)'; \ ($(call DOWNLOAD_PKG_ARCHIVE,$(1))) &> '$(LOG_DIR)/$(TIMESTAMP)/$(1)-download'; \ - rm -f '$(LOG_DIR)/$(1)-download'; \ - ln -s '$(TIMESTAMP)/$(1)-download' '$(LOG_DIR)/$(1)-download'; \ + ln -sf '$(TIMESTAMP)/$(1)-download' '$(LOG_DIR)/$(1)-download'; \ if ! $(call CHECK_PKG_ARCHIVE,$(1)); then \ echo; \ echo 'Wrong checksum of package $(1)!'; \ @@ -105,9 +104,8 @@ $(PREFIX)/installed/$(1): $(TOP_DIR)/src/$(1).mk \ $(if $(value $(1)_BUILD), @echo '[build] $(1)' ,) - @rm -f '$(LOG_DIR)/$(1)' @touch '$(LOG_DIR)/$(TIMESTAMP)/$(1)' - @ln -s '$(TIMESTAMP)/$(1)' '$(LOG_DIR)/$(1)' + @ln -sf '$(TIMESTAMP)/$(1)' '$(LOG_DIR)/$(1)' @if ! (time $(MAKE) -f '$(MAKEFILE)' 'build-only-$(1)') &> '$(LOG_DIR)/$(TIMESTAMP)/$(1)'; then \ echo; \ echo 'Failed to build package $(1)!'; \ |