Permalink
Browse files

Fix pretty Makefile goal output [closes #810].

This may be due to the Make abspath function not working well when
given a non-existent entity, but I'm not sure. This changes seems
to fix the behavior, in any case. Moving on.
  • Loading branch information...
1 parent d0788d7 commit e037c634ee764223640185e2db98936f73ad216f @StefanKarpinski StefanKarpinski committed May 21, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 Make.inc
  2. +1 −1 base/file.jl
View
@@ -231,7 +231,7 @@ BINCOLOR="\033[37;1m"
JULCOLOR="\033[34;1m"
ENDCOLOR="\033[0m"
-GOAL=$(subst $(abspath $(JULIAHOME)),,$(abspath $(CURDIR)/$@))
+GOAL=$(subst $(abspath $(JULIAHOME))/,,$(abspath $(CURDIR))/$@)
QUIET_CC = @printf ' %b %b\n' $(CCCOLOR)CC$(ENDCOLOR) $(SRCCOLOR)$(GOAL)$(ENDCOLOR);
QUIET_LINK = @printf ' %b %b\n' $(LINKCOLOR)LINK$(ENDCOLOR) $(BINCOLOR)$(GOAL)$(ENDCOLOR);
View
@@ -11,7 +11,7 @@ end
function cd(dir::String)
if ccall(:chdir, Int32, (Ptr{Uint8},), dir) == -1
- throw(SystemError("cd($dir)"))
+ throw(SystemError("cd"))
end
cwd()
end

0 comments on commit e037c63

Please sign in to comment.