summaryrefslogtreecommitdiffstats
path: root/depend.txr
diff options
context:
space:
mode:
Diffstat (limited to 'depend.txr')
-rw-r--r--depend.txr11
1 files changed, 8 insertions, 3 deletions
diff --git a/depend.txr b/depend.txr
index 61dfcec3..fc67696d 100644
--- a/depend.txr
+++ b/depend.txr
@@ -1,17 +1,22 @@
@(next :args)
@(collect)
+@(cases)
+@dir/@file.o
+@(or)
@file.o
-@(next `@file.c`)
+@(bind dir ".")
+@(end)
+@(next `@dir/@file.c`)
@(collect)
#include "@hdr"
@(cases)
@(bind hdr ("y.tab.h" "config.h"))
@(bind header hdr)
@(or)
-@(bind header `$(top_srcdir)/@hdr`)
+@(bind header `$(top_srcdir)/@dir/@hdr`)
@(end)
@(end)
@(output)
-@file.o:@(rep) @header@(end)
+@dir/@file.o:@(rep) @header@(end)
@(end)
@(end)