summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2014-11-19 15:08:23 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2014-11-19 15:08:23 -0500
commit603eabd25cd65b692e626ebb4bbf9afb9205b8fe (patch)
tree03274f6837c5b375b66e7ed20734543d481ac054 /Makefile
parent95b093f1152c07611ae2cabf7ada8eb8a2d557e8 (diff)
Makefile: clean up deps2{class,}path
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 2 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index b98e3a1..6584fe0 100644
--- a/Makefile
+++ b/Makefile
@@ -211,15 +211,12 @@ $(foreach line,\
package: PHONY $(addprefix build/packages/,$(packages))
-_sanitize_deps = $(filter-out build/workdir/%,$1)
-
_dirs2jars = $(if $1,$(shell $(FIND) $1 -name '*.jar'))
_deps2jars = $(filter %.jar,$1) $(call _dirs2jars,$(filter build/packages/%,$1))
-deps2classpath = $(shell $(ECHO) $(abspath $(call _deps2jars,$(call _sanitize_deps,$1))) $(CLASSPATH) | $(SED) 'y/ /:/')
+deps2classpath = $(shell $(ECHO) $(abspath $(call _deps2jars,$1)) $(CLASSPATH) | $(SED) 'y/ /:/')
_deps2bindirs = $(if $1,$(sort $(shell $(FIND) $1 -type f -executable -printf '%h\n' 2>/dev/null)))
-_sanitize_bindirs = $(filter-out $(subst :, ,$(PATH)),$(abspath $1))
-deps2path = $(shell $(ECHO) $(call _sanitize_bindirs,$(call _deps2bindirs,$(call _sanitize_deps,$1))) $(PATH) | $(SED) 'y/ /:/')
+deps2path = $(shell $(ECHO) $(abspath $(call _deps2bindirs,$(filter build/packages/%,$1))) $(PATH) | $(SED) 'y/ /:/')
recurse = \
PATH='$(call deps2path,$^)' \