about summary refs log tree commit diff stats
path: root/src/Makefile
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-11-28 11:39:33 -0800
committerKartik K. Agaram <vc@akkartik.com>2021-11-28 11:41:09 -0800
commit462a45a39f8d6ce6194702270f3ce4f7f99d95a6 (patch)
treef1aa7f7782e36168fe72fd1540ce9edf8312e890 /src/Makefile
parent8fd568647ae461de9a5d589c24056ef1f2ce992f (diff)
downloadteliva-462a45a39f8d6ce6194702270f3ce4f7f99d95a6.tar.gz
yet another fucking makefile bug
Making changes to lcurses directory was causing it to be compiled, but
not causing teliva to be relinked.

Now I'm:
  - unconditionally running `make` on subdirectories
  - conditionally linking their outputs

Seems reasonable when I put it like that. Hopefully this is working now.

I used to know `make` down cold a decade ago, but it's evaporated from
my brain.
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile
index 721140d..720a35e 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -49,7 +49,7 @@ $(LUA_A): $(CORE_O) $(LIB_O)
 	$(AR) $@ $(CORE_O) $(LIB_O)
 	$(RANLIB) $@
 
-$(LUA_T): $(LUA_O) $(LUA_A)
+$(LUA_T): $(LUA_O) $(LUA_A) lcurses/curses.o luasocket/socket.a luasocket/mime.a luasec/ssl.a
 	$(CC) -o $@ $(MYLDFLAGS) $(LUA_O) $(LUA_A) lcurses/curses.o luasocket/socket.a luasocket/mime.a luasec/ssl.a $(LIBS)
 
 clean: