diff options
author | Ian Lynagh <ian@well-typed.com> | 2013-03-03 22:29:57 +0000 |
---|---|---|
committer | Ian Lynagh <ian@well-typed.com> | 2013-03-03 22:29:57 +0000 |
commit | 7cef4375e696fd226399ea2b22efef0927680e8e (patch) | |
tree | 45ea74f7db9809c743ec48afbbd634beafafdc77 /rules | |
parent | 2bdc4fdc00f1124ee7f379057a357c1beabbf11c (diff) | |
download | haskell-7cef4375e696fd226399ea2b22efef0927680e8e.tar.gz |
Automatically define _INPLACE variables for perl programs too
and use them for split
Diffstat (limited to 'rules')
-rw-r--r-- | rules/build-perl.mk | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/rules/build-perl.mk b/rules/build-perl.mk index ff2a6ff625..2c1908d356 100644 --- a/rules/build-perl.mk +++ b/rules/build-perl.mk @@ -24,12 +24,17 @@ $(call profStart, build-perl($1,$2)) # $1 = dir # $2 = distdir +ifneq "$$($$($1_$2_PROG)_INPLACE)" "" +$$(error $$($1_$2_PROG)_INPLACE defined twice) +endif ifeq "$$($1_$2_TOPDIR)" "YES" -$1_$2_INPLACE = $$(INPLACE_TOPDIR)/$$($1_$2_PROG) +$$($1_$2_PROG)_INPLACE = $$(INPLACE_TOPDIR)/$$($1_$2_PROG) else -$1_$2_INPLACE = $$(INPLACE_BIN)/$$($1_$2_PROG) +$$($1_$2_PROG)_INPLACE = $$(INPLACE_BIN)/$$($1_$2_PROG) endif +$1_$2_INPLACE = $$($$($1_$2_PROG)_INPLACE) + $(call all-target,$1_$2,$$($1_$2_INPLACE)) $(call clean-target,$1,$2,$1/$2 $$($1_$2_INPLACE)) |