diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-11-24 09:27:07 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-11-24 09:28:01 -0800 |
commit | b40ad265448018d1a22d67db399568a2dfaf3cd2 (patch) | |
tree | cfcd0ff11c8f4c803cafdada16836cad065da5d6 /src/Makefile | |
parent | a788f80a92d3942d57036e7f9c3816c89111cc0a (diff) | |
download | teliva-b40ad265448018d1a22d67db399568a2dfaf3cd2.tar.gz |
more Makefile streamlining
Since everything is in my control there's no need to parameterize include paths. It's a struggle to get make to run when it should. Lying that something is phony stops working when it's a dependency. Commands get unnecessarily run. Just fucking run recursive makes directly in the target that depends on them.
Diffstat (limited to 'src/Makefile')
-rw-r--r-- | src/Makefile | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/Makefile b/src/Makefile index 1d36c93..5bb7761 100644 --- a/src/Makefile +++ b/src/Makefile @@ -53,18 +53,14 @@ $(LUA_A): $(CORE_O) $(LIB_O) $(AR) $@ $(CORE_O) $(LIB_O) $(RANLIB) $@ -$(LUA_T): $(LUA_O) $(LUA_A) luasocket/socket.a luasocket/mime.a luasec/ssl.a +$(LUA_T): $(LUA_O) $(LUA_A) + make -C luasocket linux + make -C luasec linux $(CC) -o $@ $(MYLDFLAGS) $(LUA_O) $(LUA_A) luasocket/socket.a luasocket/mime.a luasec/ssl.a $(LIBS) $(LUAC_T): $(LUAC_O) $(LUA_A) $(CC) -o $@ $(MYLDFLAGS) $(LUAC_O) $(LUA_A) $(LIBS) -luasocket/socket.a luasocket/mime.a: - make -C luasocket linux - -luasec/ssl.a: - make -C luasec linux - clean: make -C luasocket clean make -C luasec clean @@ -126,7 +122,7 @@ solaris: $(MAKE) all MYCFLAGS="-DLUA_USE_POSIX -DLUA_USE_DLOPEN" MYLIBS="-ldl" # list targets that do not create files (but not all makes understand .PHONY) -.PHONY: all $(PLATS) default o a clean depend echo none luasocket/socket.a luasocket/mime.a luasec/ssl.a +.PHONY: all $(PLATS) default o a clean depend echo none # DO NOT DELETE |