summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2014-12-10 19:16:03 -0800
committerKaz Kylheku <kaz@kylheku.com>2014-12-10 19:16:03 -0800
commitb078354aa1a2e24c827307764521e9666670eb11 (patch)
tree93ded2451332c0e25bf724a43b33f11b4bfcc376
parentc63b7549a408a059776151d6dfc6889dbb3979a5 (diff)
downloadtxr-b078354aa1a2e24c827307764521e9666670eb11.tar.gz
txr-b078354aa1a2e24c827307764521e9666670eb11.tar.bz2
txr-b078354aa1a2e24c827307764521e9666670eb11.zip
Throwing away old dependency system.
* Makefile (DEPGEN): New macro variable. (OPT_OBJS, DBG_OBJS): Define with := assignment. (OBJS): New variable. (dbg/%.o, opt/*.o): Use -MMD and -MT options of gcc to generate dependencies. Also use DEPGEN macro to rewrite each dependency makefile's rule into a DEP_ variable assignment. (DEP_INSTANTIATE): New macro variable. (include dep.mk): Removed, replaced by eval hack that includes all the .d files and instantiates the rule from the DEP_ variable in each one. (opt/lex.yy.o, dbg/lex.yy.o): We need to hard code the dependency of these on y.tab.h, to force that header to generate. (DEP_opt/lex.yy.o, DEP_dbg/lex.yy.o): New variables, related to above. (depend): Target removed. * dep.mk: File removed. * depend.txr: File removed.
-rw-r--r--ChangeLog30
-rw-r--r--Makefile33
-rw-r--r--dep.mk88
-rw-r--r--depend.txr25
4 files changed, 47 insertions, 129 deletions
diff --git a/ChangeLog b/ChangeLog
index 69f825bd..00fd4316 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,17 +1,35 @@
2014-12-10 Kaz Kylheku <kaz@kylheku.com>
+ Throwing away old dependency system.
+
+ * Makefile (DEPGEN): New macro variable.
+ (OPT_OBJS, DBG_OBJS): Define with := assignment.
+ (OBJS): New variable.
+ (dbg/%.o, opt/*.o): Use -MMD and -MT options of gcc to generate
+ dependencies. Also use DEPGEN macro to rewrite each dependency
+ makefile's rule into a DEP_ variable assignment.
+ (DEP_INSTANTIATE): New macro variable.
+ (include dep.mk): Removed, replaced by eval hack that
+ includes all the .d files and instantiates the rule from
+ the DEP_ variable in each one.
+ (opt/lex.yy.o, dbg/lex.yy.o): We need to hard code the dependency
+ of these on y.tab.h, to force that header to generate.
+ (DEP_opt/lex.yy.o, DEP_dbg/lex.yy.o): New variables, related
+ to above.
+ (depend): Target removed.
+
+ * dep.mk: File removed.
+
+ * depend.txr: File removed.
+
+2014-12-10 Kaz Kylheku <kaz@kylheku.com>
+
* Makefile (ABBREV): Rewrite to take advantage of DEP_
variables to remove the dependencies from the output.
(ABBREV2): No longer needed, removed.
(dbg/%.o, opt/%.o, %.o): Just use ABBREV instead of ABBREV2; it does
the right thing. Dependency of objects on config.make removed.
- * dep.mk: Regenerated. Now provides variable assignments
- in addition to rules, and each object is made dependent
- on config.make.
-
- * depend.txr: Adjusted to generate dep.mk in new format.
-
2014-12-09 Kaz Kylheku <kaz@kylheku.com>
* Makefile (install-tests): Do not use option -c of
diff --git a/Makefile b/Makefile
index cc9d32df..56169677 100644
--- a/Makefile
+++ b/Makefile
@@ -58,8 +58,9 @@ MPI_OBJS := $(addprefix mpi-$(mpi_version)/,$(MPI_OBJ_BASE))
OBJS += $(MPI_OBJS)
-DBG_OBJS = $(call ADD_CONF,dbg,$(OBJS) $(OBJS-y))
-OPT_OBJS = $(call ADD_CONF,opt,$(OBJS) $(OBJS-y))
+DBG_OBJS := $(call ADD_CONF,dbg,$(OBJS) $(OBJS-y))
+OPT_OBJS := $(call ADD_CONF,opt,$(OBJS) $(OBJS-y))
+OBJS := $(DBG_OBJS) $(OPT_OBJS)
TXR := ./$(PROG)
@@ -75,16 +76,23 @@ ABBREV = $(if $(VERBOSE),\
@printf "%s %s -> %s\n" $(1) "$(filter-out $(DEP_$@),$^)" $@)
ABBREV3 = $(if $(VERBOSE),@:,@printf "%s %s -> %s\n" $(1) "$(3)" $(2))
+define DEPGEN
+$(V)sed -e '1s/^/DEP_/' -e '1s/: [^ ]\+/ :=/' < $(1) > $(1:.d=.v)
+endef
+
dbg/%.o: %.c
$(call ABBREV,CC)
$(V)mkdir -p $(dir $@)
- $(V)$(CC) $(CFLAGS) -c -o $@ $<
+ $(V)$(CC) -MMD -MT $@ $(CFLAGS) -c -o $@ $<
+ $(call DEPGEN,${@:.o=.d})
opt/%.o: %.c
$(call ABBREV,CC)
$(V)mkdir -p $(dir $@)
- $(V)$(CC) $(OPT_FLAGS) $(CFLAGS) -c -o $@ $<
+ $(V)$(CC) -MMD -MT $@ $(OPT_FLAGS) $(CFLAGS) -c -o $@ $<
+ $(call DEPGEN,${@:.o=.d})
+# The following pattern rule is used for test targets built by configure
%.o: %.c
$(call ABBREV,CC,$<)
$(V)$(CC) $(OPT_FLAGS) $(CFLAGS) -c -o $@ $<
@@ -102,9 +110,18 @@ $(PROG)-dbg: $(DBG_OBJS)
VPATH := $(top_srcdir)
--include $(top_srcdir)/dep.mk
+# Pull in dependencies
+-include $(OBJS:.o=.d) $(OBJS:.o=.v)
-lex.yy.c: parser.l config.make
+opt/lex.yy.o: y.tab.h
+dbg/lex.yy.o: y.tab.h
+DEP_opt/lex.yy.o += y.tab.h
+DEP_dbg/lex.yy.o += y.tab.h
+
+$(eval $(foreach dep,$(OPT_OBJS:.o=.d) $(DBG_OBJS:.o=.d),\
+ $(call DEP_INSTANTIATE,$(dep))))
+
+lex.yy.c: parser.l
$(call ABBREV,LEX)
$(V)rm -f $@
$(V)$(LEX) $(LEX_DBG_FLAGS) $<
@@ -148,10 +165,6 @@ distclean: clean
rm -f config.h config.make config.log
rm -rf mpi-$(mpi_version)
-.PHONY: depend
-depend:
- txr $(top_srcdir)/depend.txr $(OPT_OBJS) $(DBG_OBJS) > $(top_srcdir)/dep.mk
-
TESTS_TMP := txr.test.out
TESTS_OUT := $(addprefix tst/,\
$(patsubst %.txr,%.out,\
diff --git a/dep.mk b/dep.mk
deleted file mode 100644
index 79bb9744..00000000
--- a/dep.mk
+++ /dev/null
@@ -1,88 +0,0 @@
-DEP_opt/txr.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./stream.h $(top_srcdir)/./gc.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./parser.h $(top_srcdir)/./match.h $(top_srcdir)/./utf8.h $(top_srcdir)/./debug.h $(top_srcdir)/./syslog.h $(top_srcdir)/./eval.h $(top_srcdir)/./regex.h $(top_srcdir)/./arith.h $(top_srcdir)/./txr.h config.make
-opt/txr.o: $(DEP_opt/txr.o)
-DEP_opt/lex.yy.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./gc.h $(top_srcdir)/./stream.h $(top_srcdir)/./utf8.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./hash.h $(top_srcdir)/./parser.h $(top_srcdir)/./eval.h y.tab.h config.make
-opt/lex.yy.o: $(DEP_opt/lex.yy.o)
-DEP_opt/y.tab.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./regex.h $(top_srcdir)/./utf8.h $(top_srcdir)/./match.h $(top_srcdir)/./hash.h $(top_srcdir)/./eval.h $(top_srcdir)/./stream.h $(top_srcdir)/./parser.h config.make
-opt/y.tab.o: $(DEP_opt/y.tab.o)
-DEP_opt/match.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./gc.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./regex.h $(top_srcdir)/./stream.h $(top_srcdir)/./parser.h $(top_srcdir)/./txr.h $(top_srcdir)/./utf8.h $(top_srcdir)/./filter.h $(top_srcdir)/./hash.h $(top_srcdir)/./debug.h $(top_srcdir)/./eval.h $(top_srcdir)/./match.h config.make
-opt/match.o: $(DEP_opt/match.o)
-DEP_opt/lib.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./gc.h $(top_srcdir)/./arith.h $(top_srcdir)/./rand.h $(top_srcdir)/./hash.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./stream.h $(top_srcdir)/./utf8.h $(top_srcdir)/./filter.h $(top_srcdir)/./eval.h $(top_srcdir)/./sysif.h $(top_srcdir)/./regex.h $(top_srcdir)/./txr.h config.make
-opt/lib.o: $(DEP_opt/lib.o)
-DEP_opt/regex.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./parser.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./stream.h $(top_srcdir)/./gc.h $(top_srcdir)/./regex.h $(top_srcdir)/./txr.h config.make
-opt/regex.o: $(DEP_opt/regex.o)
-DEP_opt/gc.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./stream.h $(top_srcdir)/./hash.h $(top_srcdir)/./txr.h $(top_srcdir)/./eval.h $(top_srcdir)/./gc.h $(top_srcdir)/./signal.h config.make
-opt/gc.o: $(DEP_opt/gc.o)
-DEP_opt/unwind.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./gc.h $(top_srcdir)/./stream.h $(top_srcdir)/./txr.h $(top_srcdir)/./signal.h $(top_srcdir)/./eval.h $(top_srcdir)/./parser.h $(top_srcdir)/./unwind.h config.make
-opt/unwind.o: $(DEP_opt/unwind.o)
-DEP_opt/stream.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./gc.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./stream.h $(top_srcdir)/./utf8.h $(top_srcdir)/./eval.h $(top_srcdir)/./regex.h config.make
-opt/stream.o: $(DEP_opt/stream.o)
-DEP_opt/arith.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./gc.h $(top_srcdir)/./eval.h $(top_srcdir)/./arith.h config.make
-opt/arith.o: $(DEP_opt/arith.o)
-DEP_opt/hash.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./gc.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./stream.h $(top_srcdir)/./hash.h config.make
-opt/hash.o: $(DEP_opt/hash.o)
-DEP_opt/utf8.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./utf8.h config.make
-opt/utf8.o: $(DEP_opt/utf8.o)
-DEP_opt/filter.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./hash.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./match.h $(top_srcdir)/./filter.h $(top_srcdir)/./gc.h $(top_srcdir)/./eval.h $(top_srcdir)/./stream.h config.make
-opt/filter.o: $(DEP_opt/filter.o)
-DEP_opt/eval.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./gc.h $(top_srcdir)/./arith.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./regex.h $(top_srcdir)/./stream.h $(top_srcdir)/./parser.h $(top_srcdir)/./hash.h $(top_srcdir)/./debug.h $(top_srcdir)/./match.h $(top_srcdir)/./rand.h $(top_srcdir)/./txr.h $(top_srcdir)/./combi.h $(top_srcdir)/./eval.h config.make
-opt/eval.o: $(DEP_opt/eval.o)
-DEP_opt/rand.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./arith.h $(top_srcdir)/./rand.h $(top_srcdir)/./eval.h config.make
-opt/rand.o: $(DEP_opt/rand.o)
-DEP_opt/combi.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./eval.h $(top_srcdir)/./hash.h $(top_srcdir)/./combi.h config.make
-opt/combi.o: $(DEP_opt/combi.o)
-DEP_opt/sysif.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./stream.h $(top_srcdir)/./hash.h $(top_srcdir)/./signal.h $(top_srcdir)/./utf8.h $(top_srcdir)/./unwind.h $(top_srcdir)/./eval.h $(top_srcdir)/./sysif.h config.make
-opt/sysif.o: $(DEP_opt/sysif.o)
-DEP_opt/mpi-1.8.6/mpi.o := config.h $(top_srcdir)/mpi-1.8.6/mpi.h $(top_srcdir)/mpi-1.8.6/logtab.h config.make
-opt/mpi-1.8.6/mpi.o: $(DEP_opt/mpi-1.8.6/mpi.o)
-DEP_opt/mpi-1.8.6/mplogic.o := config.h $(top_srcdir)/mpi-1.8.6/mplogic.h config.make
-opt/mpi-1.8.6/mplogic.o: $(DEP_opt/mpi-1.8.6/mplogic.o)
-DEP_opt/debug.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./debug.h $(top_srcdir)/./gc.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./stream.h $(top_srcdir)/./parser.h $(top_srcdir)/./txr.h config.make
-opt/debug.o: $(DEP_opt/debug.o)
-DEP_opt/syslog.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./stream.h $(top_srcdir)/./hash.h $(top_srcdir)/./gc.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./utf8.h $(top_srcdir)/./eval.h $(top_srcdir)/./syslog.h config.make
-opt/syslog.o: $(DEP_opt/syslog.o)
-DEP_opt/signal.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./gc.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./eval.h config.make
-opt/signal.o: $(DEP_opt/signal.o)
-DEP_dbg/txr.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./stream.h $(top_srcdir)/./gc.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./parser.h $(top_srcdir)/./match.h $(top_srcdir)/./utf8.h $(top_srcdir)/./debug.h $(top_srcdir)/./syslog.h $(top_srcdir)/./eval.h $(top_srcdir)/./regex.h $(top_srcdir)/./arith.h $(top_srcdir)/./txr.h config.make
-dbg/txr.o: $(DEP_dbg/txr.o)
-DEP_dbg/lex.yy.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./gc.h $(top_srcdir)/./stream.h $(top_srcdir)/./utf8.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./hash.h $(top_srcdir)/./parser.h $(top_srcdir)/./eval.h y.tab.h config.make
-dbg/lex.yy.o: $(DEP_dbg/lex.yy.o)
-DEP_dbg/y.tab.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./regex.h $(top_srcdir)/./utf8.h $(top_srcdir)/./match.h $(top_srcdir)/./hash.h $(top_srcdir)/./eval.h $(top_srcdir)/./stream.h $(top_srcdir)/./parser.h config.make
-dbg/y.tab.o: $(DEP_dbg/y.tab.o)
-DEP_dbg/match.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./gc.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./regex.h $(top_srcdir)/./stream.h $(top_srcdir)/./parser.h $(top_srcdir)/./txr.h $(top_srcdir)/./utf8.h $(top_srcdir)/./filter.h $(top_srcdir)/./hash.h $(top_srcdir)/./debug.h $(top_srcdir)/./eval.h $(top_srcdir)/./match.h config.make
-dbg/match.o: $(DEP_dbg/match.o)
-DEP_dbg/lib.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./gc.h $(top_srcdir)/./arith.h $(top_srcdir)/./rand.h $(top_srcdir)/./hash.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./stream.h $(top_srcdir)/./utf8.h $(top_srcdir)/./filter.h $(top_srcdir)/./eval.h $(top_srcdir)/./sysif.h $(top_srcdir)/./regex.h $(top_srcdir)/./txr.h config.make
-dbg/lib.o: $(DEP_dbg/lib.o)
-DEP_dbg/regex.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./parser.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./stream.h $(top_srcdir)/./gc.h $(top_srcdir)/./regex.h $(top_srcdir)/./txr.h config.make
-dbg/regex.o: $(DEP_dbg/regex.o)
-DEP_dbg/gc.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./stream.h $(top_srcdir)/./hash.h $(top_srcdir)/./txr.h $(top_srcdir)/./eval.h $(top_srcdir)/./gc.h $(top_srcdir)/./signal.h config.make
-dbg/gc.o: $(DEP_dbg/gc.o)
-DEP_dbg/unwind.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./gc.h $(top_srcdir)/./stream.h $(top_srcdir)/./txr.h $(top_srcdir)/./signal.h $(top_srcdir)/./eval.h $(top_srcdir)/./parser.h $(top_srcdir)/./unwind.h config.make
-dbg/unwind.o: $(DEP_dbg/unwind.o)
-DEP_dbg/stream.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./gc.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./stream.h $(top_srcdir)/./utf8.h $(top_srcdir)/./eval.h $(top_srcdir)/./regex.h config.make
-dbg/stream.o: $(DEP_dbg/stream.o)
-DEP_dbg/arith.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./gc.h $(top_srcdir)/./eval.h $(top_srcdir)/./arith.h config.make
-dbg/arith.o: $(DEP_dbg/arith.o)
-DEP_dbg/hash.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./gc.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./stream.h $(top_srcdir)/./hash.h config.make
-dbg/hash.o: $(DEP_dbg/hash.o)
-DEP_dbg/utf8.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./utf8.h config.make
-dbg/utf8.o: $(DEP_dbg/utf8.o)
-DEP_dbg/filter.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./hash.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./match.h $(top_srcdir)/./filter.h $(top_srcdir)/./gc.h $(top_srcdir)/./eval.h $(top_srcdir)/./stream.h config.make
-dbg/filter.o: $(DEP_dbg/filter.o)
-DEP_dbg/eval.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./gc.h $(top_srcdir)/./arith.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./regex.h $(top_srcdir)/./stream.h $(top_srcdir)/./parser.h $(top_srcdir)/./hash.h $(top_srcdir)/./debug.h $(top_srcdir)/./match.h $(top_srcdir)/./rand.h $(top_srcdir)/./txr.h $(top_srcdir)/./combi.h $(top_srcdir)/./eval.h config.make
-dbg/eval.o: $(DEP_dbg/eval.o)
-DEP_dbg/rand.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./arith.h $(top_srcdir)/./rand.h $(top_srcdir)/./eval.h config.make
-dbg/rand.o: $(DEP_dbg/rand.o)
-DEP_dbg/combi.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./eval.h $(top_srcdir)/./hash.h $(top_srcdir)/./combi.h config.make
-dbg/combi.o: $(DEP_dbg/combi.o)
-DEP_dbg/sysif.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./stream.h $(top_srcdir)/./hash.h $(top_srcdir)/./signal.h $(top_srcdir)/./utf8.h $(top_srcdir)/./unwind.h $(top_srcdir)/./eval.h $(top_srcdir)/./sysif.h config.make
-dbg/sysif.o: $(DEP_dbg/sysif.o)
-DEP_dbg/mpi-1.8.6/mpi.o := config.h $(top_srcdir)/mpi-1.8.6/mpi.h $(top_srcdir)/mpi-1.8.6/logtab.h config.make
-dbg/mpi-1.8.6/mpi.o: $(DEP_dbg/mpi-1.8.6/mpi.o)
-DEP_dbg/mpi-1.8.6/mplogic.o := config.h $(top_srcdir)/mpi-1.8.6/mplogic.h config.make
-dbg/mpi-1.8.6/mplogic.o: $(DEP_dbg/mpi-1.8.6/mplogic.o)
-DEP_dbg/debug.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./debug.h $(top_srcdir)/./gc.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./stream.h $(top_srcdir)/./parser.h $(top_srcdir)/./txr.h config.make
-dbg/debug.o: $(DEP_dbg/debug.o)
-DEP_dbg/syslog.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./stream.h $(top_srcdir)/./hash.h $(top_srcdir)/./gc.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./utf8.h $(top_srcdir)/./eval.h $(top_srcdir)/./syslog.h config.make
-dbg/syslog.o: $(DEP_dbg/syslog.o)
-DEP_dbg/signal.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./gc.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./eval.h config.make
-dbg/signal.o: $(DEP_dbg/signal.o)
diff --git a/depend.txr b/depend.txr
deleted file mode 100644
index 120ab1bd..00000000
--- a/depend.txr
+++ /dev/null
@@ -1,25 +0,0 @@
-@(next :args)
-@(collect)
-@(cases)
-@conf/@dir/@file.o
-@(bind pfx `@conf/@dir`)
-@(or)
-@conf/@file.o
-@(bind dir ".")
-@(bind pfx conf)
-@(end)
-@(next `@dir/@file.c`)
-@(collect)
-#include "@hdr"
-@(cases)
-@(bind hdr ("y.tab.h" "config.h"))
-@(bind header hdr)
-@(or)
-@(bind header `$(top_srcdir)/@dir/@hdr`)
-@(end)
-@(end)
-@(output)
-DEP_@pfx/@file.o :=@(rep) @header@(end) config.make
-@pfx/@file.o: $(DEP_@pfx/@file.o)
-@(end)
-@(end)