summaryrefslogtreecommitdiff
path: root/enc
diff options
context:
space:
mode:
Diffstat (limited to 'enc')
-rw-r--r--enc/Makefile.in2
-rw-r--r--enc/depend4
2 files changed, 4 insertions, 2 deletions
diff --git a/enc/Makefile.in b/enc/Makefile.in
index a37541d000..0894b26fb2 100644
--- a/enc/Makefile.in
+++ b/enc/Makefile.in
@@ -51,7 +51,7 @@ archflag = @ARCH_FLAG@
DLDFLAGS = $(ldflags) $(dldflags) $(archflag)
RUBY = $(MINIRUBY)
-WORKDIRS = $(ENCSODIR) $(TRANSSODIR) enc enc/trans
+WORKDIRS = @WORKDIRS@
RM = @RM@
RMDIR = @RMDIR@
diff --git a/enc/depend b/enc/depend
index 23f7bd2922..e331d5b595 100644
--- a/enc/depend
+++ b/enc/depend
@@ -1,3 +1,5 @@
+% workdirs = %w"$(ENCSODIR) $(TRANSSODIR) enc enc/trans"
+% CONFIG["WORKDIRS"] = workdirs.join(' ')
% CONFIG["DLDFLAGS"].sub!(/(\A|\s)(-\S+(?:\s*\w*)?\$\(TARGET\)\S*)/, '\1')
% dldflags = $2
% enable_shared = CONFIG['ENABLE_SHARED'] == 'yes'
@@ -143,7 +145,7 @@ clean:
@$(RM) <%=pathrep[clean]%>
% end
% @ignore_error = $nmake ? '' : ' 2> /dev/null || true'
-% %w[$(TRANSSODIR) $(ENCSODIR)].each do|dir|
+% workdirs.reverse_each do|dir|
@-$(RMDIR) <%=pathrep[dir]%><%=@ignore_error%>
% end