From: Thomas Huth Date: Fri, 14 Oct 2022 18:29:41 +0000 (+0200) Subject: Makefile: blorb-lib needs hash.h X-Git-Url: https://scope-eye.net/git/?a=commitdiff_plain;h=cdf0ad4aff2d8937034e02e41a5aadcca320ea18;p=liskon_frotz.git Makefile: blorb-lib needs hash.h If running "make blorb-lib" on a vanilla source directory, the compilation fails with: make -C src/blorb make[1]: Entering directory '/home/thomas/src/frotz/src/blorb' cc -Wall -std=c99 -O3 -g -D_POSIX_C_SOURCE=200809L -I../common -fPIC -fpic -o blorblib.o -c blorblib.c In file included from blorblib.c:11: ../common/frotz.h:74:10: fatal error: hash.h: No such file or directory 74 | #include "hash.h" | ^~~~~~~~ compilation terminated. Looks like we also have to make sure that hash.h is in place before compiling the blorb target, thus add the dependency to the Makefile. --- diff --git a/Makefile b/Makefile index 1d27b09..3d2bc45 100644 --- a/Makefile +++ b/Makefile @@ -461,7 +461,7 @@ $(SDL_LIB): $(COMMON_DEFINES) $(HASH) $(SDL_DIR) $(DUMB_LIB): $(COMMON_DEFINES) $(HASH) $(MAKE) -C $(DUMB_DIR) -$(BLORB_LIB): $(COMMON_DEFINES) +$(BLORB_LIB): $(COMMON_DEFINES) $(HASH) $(MAKE) -C $(BLORB_DIR) $(SUB_CLEAN):