Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: d0bd62099f
Fetching contributors…

Cannot retrieve contributors at this time

41 lines (34 sloc) 0.938 kb
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_VERSION = @PACKAGE_VERSION@
RELDIR = releases/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
ifeq ($(shell uname),Linux)
ARCH = linux
else
ARCH = macosx
endif
all:
(cd c;$(MAKE))
(cd erl;$(MAKE))
clean:
(cd c;$(MAKE) clean)
(cd erl;$(MAKE) clean)
test:
(cd c; $(MAKE) test)
(cd erl; $(MAKE) test)
install: all
(cd c; $(MAKE) install)
(cd erl; $(MAKE) install)
debug:
(cd c;$(MAKE) debug)
(cd erl;$(MAKE) debug)
release: all
mkdir -p $(RELDIR)
cp -r ebin $(RELDIR)/
cp -r priv $(RELDIR)/
mkdir -p $(RELDIR)/src
cp -r erl/*.erl $(RELDIR)/src/
cp -r c/*.c $(RELDIR)/src
cp -r c/*.h $(RELDIR)/src
sed s/?VERSION/$(PACKAGE_VERSION)/ releases/cherly.rel > $(RELDIR)/cherly.rel
sed s/?VERSION/$(PACKAGE_VERSION)/ ebin/cherly.app > $(RELDIR)/ebin/cherly.app
cd $(RELDIR); erl -pa ./ebin -eval "systools:make_script(\"cherly\", [local])." -eval "systools:make_tar(\"cherly\")." -s erlang halt
Jump to Line
Something went wrong with that request. Please try again.