[Pkg-mozext-commits] [requestpolicy] 114/257: [fix] Makefile: `preprocessor` should be order-only
David Prévot
taffit at moszumanska.debian.org
Thu Jan 28 03:20:03 UTC 2016
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository requestpolicy.
commit aeda47e150b4b0dccb8da3192c5a3987029a679b
Author: Martin Kimmerle <dev at 256k.de>
Date: Mon Oct 19 03:13:32 2015 +0200
[fix] Makefile: `preprocessor` should be order-only
Make the `preprocessor` target an order-only prerequisite for
the `$(*__jspp_files)` targets. This way the `$(*__jspp_files)`
recipes are only invoked if the corresponding *.js / *.jsm file
has changed.
---
Makefile | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile
index d000577..8e53d1d 100644
--- a/Makefile
+++ b/Makefile
@@ -372,7 +372,7 @@ $(off_amo__build_path): $(off_amo__all_files) $(off_amo__deleted_files) $(off_am
# enable Secondary Expansion (so that $@ can be used in prerequisites via $$@)
.SECONDEXPANSION:
-$(off_amo__jspp_files): $$(patsubst $$(off_amo__build_path)%,$$(source_path)%,$$@) preprocessor
+$(off_amo__jspp_files): $$(patsubst $$(off_amo__build_path)%,$$(source_path)%,$$@) | preprocessor
@mkdir -p $(@D)
$(PREPROCESS) $< > $@
@@ -397,7 +397,7 @@ $(off_amo__build_path)/META-INF/: $(off_amo__build_path) $(off_amo__all_files)
$(amo__build_path): $(amo__all_files) $(amo__deleted_files) $(amo__empty_dirs)
-$(amo__jspp_files): $$(patsubst $$(amo__build_path)%,$$(source_path)%,$$@) preprocessor
+$(amo__jspp_files): $$(patsubst $$(amo__build_path)%,$$(source_path)%,$$@) | preprocessor
@mkdir -p $(@D)
$(PREPROCESS) -D AMO $< > $@
@@ -416,7 +416,7 @@ $(amo__copy_files): $$(patsubst $$(amo__build_path)%,$$(source_path)%,$$@)
$(unit_testing__build_path): $(unit_testing__all_files) $(unit_testing__deleted_files) $(unit_testing__empty_dirs)
-$(unit_testing__jspp_files): $$(patsubst $$(unit_testing__build_path)%,$$(source_path)%,$$@) preprocessor
+$(unit_testing__jspp_files): $$(patsubst $$(unit_testing__build_path)%,$$(source_path)%,$$@) | preprocessor
@mkdir -p $(@D)
$(PREPROCESS) --keep-lines -D UNIT_TESTING $< > $@
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/requestpolicy.git
More information about the Pkg-mozext-commits
mailing list