aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Saponara <as@php.net>2018-12-28 03:20:51 -0500
committerAdam Saponara <as@php.net>2018-12-28 03:20:51 -0500
commitb9396beadef4496edc3999f470acffff5c0b5df7 (patch)
tree8eb92ad2e86c7718bd415a3260b3b5b532a06577
parent0d51b0d1036ccc634f0667558f806fc2ff63b563 (diff)
downloadmle-b9396beadef4496edc3999f470acffff5c0b5df7.tar
mle-b9396beadef4496edc3999f470acffff5c0b5df7.tar.gz
fix submodule init in `vendor/Makefile`
-rw-r--r--vendor/Makefile17
1 files changed, 9 insertions, 8 deletions
diff --git a/vendor/Makefile b/vendor/Makefile
index 9617dee..cb0b114 100644
--- a/vendor/Makefile
+++ b/vendor/Makefile
@@ -3,18 +3,18 @@ lua_objects:=$(patsubst lua/%.c,lua/%.o,$(filter-out lua/lua.c, $(wildcard lua/*
termbox_cflags:=-std=c99 -Wall -Wextra -pedantic -Wno-unused-result -g -O3 -D_XOPEN_SOURCE $(CFLAGS)
termbox_objects:=$(patsubst termbox/src/%.c,termbox/src/%.o,$(wildcard termbox/src/*.c))
-all: ./pcre/.libs/libpcre.a ./lua/liblua5.3.a ./termbox/src/libtermbox.a vendor/uthash/.git
+all: uthash/.git pcre/.libs/libpcre.a lua/liblua5.3.a termbox/src/libtermbox.a
-vendor/uthash/.git:
+uthash/.git:
git submodule update --init
-./pcre/.libs/libpcre.a:
+pcre/.libs/libpcre.a:
cd pcre && ./autogen.sh && ./configure && $(MAKE)
-./lua/liblua5.3.a: $(lua_objects)
+lua/liblua5.3.a: $(lua_objects)
$(AR) rcs $@ $(lua_objects)
-./termbox/src/libtermbox.a: $(termbox_objects)
+termbox/src/libtermbox.a: $(termbox_objects)
$(AR) rcs $@ $(termbox_objects)
$(lua_objects): %.o: %.c
@@ -24,8 +24,9 @@ $(termbox_objects): %.o: %.c
$(CC) -c $(termbox_cflags) $< -o $@
clean:
- rm -f ./lua/liblua.a $(lua_objects)
- rm -f ./termbox/src/libtermbox.a $(termbox_objects)
- $(MAKE) -C pcre clean
+ rm -f lua/liblua5.3.a $(lua_objects)
+ rm -f termbox/src/libtermbox.a $(termbox_objects)
+ rm -f pcre/config.h.in~
+ -$(MAKE) -C pcre clean
.PHONY: all clean