Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
40 lines (30 sloc) 964 Bytes
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: make_subprojects test
clean:
(cd c;$(MAKE) clean)
(cd src;$(MAKE) clean)
distclean: clean
rm -rf autom4te.cache config.log config.status
rm -f Makefile c/Makefile
debug:
(cd c;$(MAKE) debug)
(cd src;$(MAKE) debug)
test:
prove t/*.t
make_subprojects:
(cd c;$(MAKE))
(cd src;$(MAKE))
package: clean
@mkdir mochevent-$(PACKAGE_VERSION)/ && cp -rf c src support t configure configure.in foo.bin Makefile.in README.markdown mochevent-$(PACKAGE_VERSION)
@COPYFILE_DISABLE=true tar zcf mochevent-$(PACKAGE_VERSION).tgz mochevent-$(PACKAGE_VERSION)
@rm -rf mochevent-$(PACKAGE_VERSION)/
install:
mkdir -p $(prefix)/$(LIBDIR)/mochevent-$(PACKAGE_VERSION)/ebin
for i in ebin/*.beam; do install $$i $(prefix)/$(LIBDIR)/mochevent-$(PACKAGE_VERSION)/$$i ; done
Jump to Line
Something went wrong with that request. Please try again.