Skip to content

Commit

Permalink
updating build process
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob Vorreuter committed Feb 25, 2010
1 parent 06b1690 commit 8dbb958
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 66 deletions.
7 changes: 7 additions & 0 deletions Emakefile
@@ -0,0 +1,7 @@
% -*- mode: erlang -*-

{['src/*'],
[{i, "include"},
{outdir, "ebin"},
debug_info]
}.
15 changes: 5 additions & 10 deletions Makefile
Expand Up @@ -2,24 +2,19 @@ LIBDIR=`erl -eval 'io:format("~s~n", [code:lib_dir()])' -s init stop -noshell`
VERSION=0.2 VERSION=0.2
PKGNAME=erlmc PKGNAME=erlmc


all: app all: emake
mkdir -p ebin/
(cd src;$(MAKE))


emake: app
erl -make

app: app:
sh ebin/$(PKGNAME).app.in $(VERSION) sh ebin/$(PKGNAME).app.in $(VERSION)


test: all test: all
prove t/*.t prove t/*.t


clean: clean:
(cd src;$(MAKE) clean) rm -rf erl_crash.dump ebin/*.beam ebin/*.app
rm -rf erl_crash.dump *.beam *.hrl ebin/*.app

package: clean
@mkdir $(PKGNAME)-$(VERSION)/ && cp -rf ebin include Makefile README.markdown src support t $(PKGNAME)-$(VERSION)
@COPYFILE_DISABLE=true tar zcf $(PKGNAME)-$(VERSION).tgz $(PKGNAME)-$(VERSION)
@rm -rf $(PKGNAME)-$(VERSION)/


install: install:
mkdir -p $(prefix)/$(LIBDIR)/$(PKGNAME)-$(VERSION)/{ebin,include} mkdir -p $(prefix)/$(LIBDIR)/$(PKGNAME)-$(VERSION)/{ebin,include}
Expand Down
9 changes: 0 additions & 9 deletions src/Makefile

This file was deleted.

47 changes: 0 additions & 47 deletions support/include.mk

This file was deleted.

0 comments on commit 8dbb958

Please sign in to comment.