From: PatR Date: Tue, 14 Sep 2021 09:06:14 +0000 (-0700) Subject: Unix 'make depend' X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=84b4eb9888b72035383fa27bb4b3a3653f12317e;p=nethack Unix 'make depend' I recently changed a comment in objclass.h and that should have triggered a full or nearly full rebuild but only resulted in a couple of files being recompiled. Instead of trying to figure out why, I just ran Makefile.src through 'make depend' to force it to be up to date. A side-effect is that version.c won't be unnecessarily recompiled every time nethack gets relinked. The reason for that (date.h being regenerated with new data) is handled by date.c now. --- diff --git a/sys/unix/Makefile.src b/sys/unix/Makefile.src index a87864bbf..153b3ebc2 100644 --- a/sys/unix/Makefile.src +++ b/sys/unix/Makefile.src @@ -801,27 +801,28 @@ depend: ../sys/unix/depend.awk \ # config.h timestamp $(CONFIG_H): ../include/config.h ../include/config1.h ../include/patchlevel.h \ - ../include/tradstdc.h ../include/global.h ../include/warnings.h \ - ../include/coord.h ../include/vmsconf.h ../include/system.h \ - ../include/nhlua.h ../include/unixconf.h ../include/pcconf.h \ - ../include/windconf.h ../include/fnamesiz.h + ../include/tradstdc.h ../include/global.h ../include/coord.h \ + ../include/vmsconf.h ../include/system.h ../include/nhlua.h \ + ../include/unixconf.h ../include/pcconf.h ../include/micro.h \ + ../include/windconf.h ../include/warnings.h \ + ../include/fnamesiz.h touch $(CONFIG_H) # hack.h timestamp $(HACK_H): ../include/hack.h $(CONFIG_H) ../include/lint.h ../include/align.h \ - ../include/dungeon.h ../include/mkroom.h \ - ../include/objclass.h ../include/youprop.h ../include/prop.h \ - ../include/permonst.h ../include/monattk.h \ - ../include/monflag.h ../include/mondata.h \ - ../include/wintype.h ../include/context.h \ - ../include/sym.h ../include/defsym.h ../include/rm.h \ + ../include/dungeon.h ../include/sym.h ../include/defsym.h \ + ../include/mkroom.h ../include/artilist.h \ + ../include/objclass.h ../include/objects.h \ + ../include/youprop.h ../include/prop.h ../include/permonst.h \ + ../include/monattk.h ../include/monflag.h \ + ../include/monsters.h ../include/mondata.h \ + ../include/wintype.h ../include/context.h ../include/rm.h \ ../include/botl.h ../include/rect.h ../include/region.h \ ../include/decl.h ../include/quest.h ../include/spell.h \ ../include/color.h ../include/obj.h ../include/engrave.h \ ../include/you.h ../include/attrib.h ../include/monst.h \ - ../include/mextra.h ../include/skills.h ../include/monsters.h \ - ../include/timeout.h ../include/trap.h ../include/flag.h \ - ../include/vision.h ../include/display.h ../include/winprocs.h \ - ../include/sys.h + ../include/mextra.h ../include/skills.h ../include/timeout.h \ + ../include/trap.h ../include/flag.h ../include/vision.h \ + ../include/display.h ../include/winprocs.h ../include/sys.h touch $(HACK_H) # $(TARGETPFX)pcmain.o: ../sys/share/pcmain.c $(HACK_H) ../include/dlb.h @@ -1044,8 +1045,7 @@ $(TARGETPFX)wc_trace.o: ../win/chain/wc_trace.c $(HACK_H) ../include/wintty.h \ $(TARGETPFX)allmain.o: allmain.c $(HACK_H) $(TARGETPFX)alloc.o: alloc.c $(CONFIG_H) $(TARGETPFX)apply.o: apply.c $(HACK_H) -$(TARGETPFX)artifact.o: artifact.c $(HACK_H) ../include/artifact.h \ - ../include/artilist.h +$(TARGETPFX)artifact.o: artifact.c $(HACK_H) ../include/artifact.h $(TARGETPFX)attrib.o: attrib.c $(HACK_H) $(TARGETPFX)ball.o: ball.c $(HACK_H) $(TARGETPFX)bones.o: bones.c $(HACK_H) @@ -1065,8 +1065,8 @@ $(TARGETPFX)dogmove.o: dogmove.c $(HACK_H) ../include/mfndpos.h $(TARGETPFX)dokick.o: dokick.c $(HACK_H) $(TARGETPFX)dothrow.o: dothrow.c $(HACK_H) $(TARGETPFX)drawing.o: drawing.c $(CONFIG_H) ../include/color.h \ - ../include/sym.h ../include/defsym.h ../include/rm.h \ - ../include/objclass.h + ../include/rm.h ../include/objclass.h ../include/defsym.h \ + ../include/objects.h ../include/sym.h $(TARGETPFX)dungeon.o: dungeon.c $(HACK_H) ../include/dgn_file.h \ ../include/dlb.h $(TARGETPFX)eat.o: eat.c $(HACK_H) @@ -1090,7 +1090,8 @@ $(TARGETPFX)makemon.o: makemon.c $(HACK_H) $(TARGETPFX)mcastu.o: mcastu.c $(HACK_H) $(TARGETPFX)mdlib.o: mdlib.c $(CONFIG_H) ../include/permonst.h \ ../include/align.h ../include/monattk.h ../include/monflag.h \ - ../include/objclass.h ../include/sym.h ../include/defsym.h \ + ../include/monsters.h ../include/objclass.h \ + ../include/defsym.h ../include/objects.h ../include/sym.h \ ../include/artilist.h ../include/dungeon.h ../include/obj.h \ ../include/monst.h ../include/mextra.h ../include/you.h \ ../include/attrib.h ../include/prop.h ../include/skills.h \ @@ -1108,8 +1109,8 @@ $(TARGETPFX)mondata.o: mondata.c $(HACK_H) $(TARGETPFX)monmove.o: monmove.c $(HACK_H) ../include/mfndpos.h \ ../include/artifact.h $(TARGETPFX)monst.o: monst.c $(CONFIG_H) ../include/permonst.h \ - ../include/monsters.h ../include/align.h ../include/monattk.h \ - ../include/monflag.h ../include/sym.h ../include/defsym.h \ + ../include/align.h ../include/monattk.h ../include/monflag.h \ + ../include/monsters.h ../include/sym.h ../include/defsym.h \ ../include/color.h $(TARGETPFX)mplayer.o: mplayer.c $(HACK_H) $(TARGETPFX)mthrowu.o: mthrowu.c $(HACK_H) @@ -1120,13 +1121,12 @@ $(TARGETPFX)nhlsel.o: nhlsel.c $(HACK_H) ../include/sp_lev.h $(TARGETPFX)nhlobj.o: nhlobj.c $(HACK_H) ../include/sp_lev.h $(TARGETPFX)o_init.o: o_init.c $(HACK_H) $(TARGETPFX)objects.o: objects.c $(CONFIG_H) ../include/obj.h \ - ../include/objects.h ../include/objclass.h \ - ../include/prop.h ../include/skills.h \ - ../include/color.h + ../include/prop.h ../include/skills.h ../include/color.h \ + ../include/objclass.h ../include/defsym.h ../include/objects.h $(TARGETPFX)objnam.o: objnam.c $(HACK_H) $(TARGETPFX)options.o: options.c $(CONFIG_H) ../include/objclass.h \ - ../include/flag.h $(HACK_H) ../include/tcap.h \ - ../include/optlist.h + ../include/defsym.h ../include/objects.h ../include/flag.h \ + $(HACK_H) ../include/tcap.h ../include/optlist.h $(TARGETPFX)pager.o: pager.c $(HACK_H) ../include/dlb.h $(TARGETPFX)pickup.o: pickup.c $(HACK_H) $(TARGETPFX)pline.o: pline.c $(HACK_H) @@ -1165,7 +1165,7 @@ $(TARGETPFX)trap.o: trap.c $(HACK_H) $(TARGETPFX)u_init.o: u_init.c $(HACK_H) $(TARGETPFX)uhitm.o: uhitm.c $(HACK_H) $(TARGETPFX)vault.o: vault.c $(HACK_H) -$(TARGETPFX)version.o: version.c $(HACK_H) ../include/dlb.h ../include/date.h +$(TARGETPFX)version.o: version.c $(HACK_H) ../include/dlb.h $(TARGETPFX)vision.o: vision.c $(HACK_H) $(TARGETPFX)weapon.o: weapon.c $(HACK_H) $(TARGETPFX)were.o: were.c $(HACK_H)