Skip to content

Commit

Permalink
Adding install target to Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
ngerakines committed Jan 15, 2009
1 parent eb831c7 commit 66ac937
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Makefile
@@ -1,3 +1,5 @@
LIBDIR=`erl -eval 'io:format("~s~n", [code:lib_dir()])' -s init stop -noshell`

all:
mkdir -p ebin
(cd src;$(MAKE))
Expand All @@ -8,3 +10,7 @@ clean:
dist-src:
mkdir erlang_mysql-1/ && cp -rfv src include support Makefile erlang_mysql-1/
tar zcf mysql-1.tgz erlang_mysql-1

install: all
mkdir -p ${LIBDIR}/mysql-1/{ebin,include}
for i in ebin/*.beam; do install $$i $(LIBDIR)/mysql-1/$$i ; done

0 comments on commit 66ac937

Please sign in to comment.