]> granicus.if.org Git - nethack/commitdiff
fix a 'make bundle' error
authornhmall <nhmall@nethack.org>
Mon, 27 Feb 2023 16:08:51 +0000 (11:08 -0500)
committernhmall <nhmall@nethack.org>
Mon, 27 Feb 2023 16:08:51 +0000 (11:08 -0500)
make[1]: *** No rule to make target `../util/uudecode', needed by `/Users/testuser/nethack/NHsource/bundle/NetHackTerm.app/Contents/Resources/NetHackTerm.icns'.  Stop.
make: *** [bundle] Error 2

sys/unix/hints/macOS.370

index 7ecc11628bf7b92f85f08fb0e159ca59402db684..710f52e6022daac1240c4e7e2a017bc4e290117c 100755 (executable)
@@ -388,10 +388,11 @@ VARDIR=$(HACKDIR)
 
 ifdef MAKEFILE_TOP
 .PHONY: bundle
-
+NHTOP=
 endif
 ifdef MAKEFILE_SRC
 .PHONY: buildbundle bundledir updatescript
+NHTOP=../
 abspath := $(abspath $(dir $(lastword $(MAKEFILE_LIST))))
 ABSBUNDLEPATH := $(dir $(abspath))
 $(info ABSBUNDLEPATH=$(ABSBUNDLEPATH))
@@ -471,9 +472,11 @@ endif  # WANT_LIBNH
 # -- bundle ---
 #
 ifdef MAKEFILE_TOP
-bundle: update
+bundle: update uudecode
        ( cd src ; $(MAKE) WANT_BUNDLE=1 buildbundle )
 
+uudecode:
+       (cd util ; $(MAKE) WANT_BUNDLE=1 uudecode )
 endif   # MAKEFILE_TOP
 ifdef WANT_BUNDLE
 ifdef MAKEFILE_SRC
@@ -584,8 +587,8 @@ endif
 
 # We can't use a general rule because the file name of the .uu does not match the
 # uudecode target file name in this case (nhicns.uu to nethack.icns)
-$(BUNDLE_RESOURCESDIR)/$(BUNDLE_NAME).icns: $(BUNDLE_RESOURCESDIR) ../util/uudecode ../win/share/nhicns.uu
-       ../util/uudecode ../win/share/nhicns.uu
+$(BUNDLE_RESOURCESDIR)/$(BUNDLE_NAME).icns: $(BUNDLE_RESOURCESDIR) $(NHTOP)util/uudecode $(NHTOP)win/share/nhicns.uu
+       $(NHTOP)util/uudecode ../win/share/nhicns.uu
        mv nethack.icns $@
 
 endif   # MAKEFILE_SRC