]> git.pond.sub.org Git - empserver/blobdiff - Make.mk
info/toc: New; generated machine-readable table of contents
[empserver] / Make.mk
diff --git a/Make.mk b/Make.mk
index bfe62cb6a03605b72a577c1a7e6888a3af4d7337..2fb4bbbbb00224850e0c408120e8a3ed30944e21 100644 (file)
--- a/Make.mk
+++ b/Make.mk
@@ -321,15 +321,15 @@ $(libs) $(empth_lib):
 
 # Info formatting
 
-# mksubj.pl reads $(tsrc) and writes $(tsubj).  The naive rule
-#     $(ttop) $(tsubj): $(tsrc)
+# mksubj.pl reads $(tsrc) and writes $(tsubj).  A naive rule
+#     $(tsubj): $(tsrc)
 #           COMMAND
 # runs COMMAND once for each target.  That's because multiple targets
 # in an explicit rule is just a shorthand for one rule per target,
 # each with the same prerequisites and commands.  Use a stamp file.
-$(tsubj): info/stamp-subj ;
+$(tsubj) info/toc: info/stamp-subj ;
 info/stamp-subj: info/mksubj.pl $(tsrc)
-       $(call quiet-command,perl $(srcdir)/info/mksubj.pl $(subjects) $(filter %.t, $^),GEN '$(tsubj)')
+       $(call quiet-command,perl $(srcdir)/info/mksubj.pl $(subjects) $(filter %.t, $^),GEN '$(tsubj) info/toc')
        >$@
 
 $(ttop): info/mktop.pl info/subjects.mk