Skip to content

Commit

Permalink
Makefile: added install target (required for LuaRocks)
Browse files Browse the repository at this point in the history
  • Loading branch information
agladysh authored and bnoordhuis committed May 11, 2012
1 parent c642fdd commit cbb517f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Expand Up @@ -27,7 +27,7 @@ else
override CFLAGS += -O2 -DNDEBUG
endif

.PHONY: prereqs clean
.PHONY: prereqs clean install

OBJECTS = $(patsubst src/%.c,$(B)/%.o,$(SOURCES))

Expand All @@ -46,5 +46,9 @@ prereqs:
clean:
rm -rf $(B)

install: $(B)/uv.so
mkdir -p $(LUA_LIBDIR)
cp $(B)/uv.so $(LUA_LIBDIR)

deps/libuv/uv.a:
$(MAKE) -C deps/libuv CFLAGS+=-fPIC

0 comments on commit cbb517f

Please sign in to comment.