Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added .app.src file.

  • Loading branch information...
commit b8ddef71916717e0048a293554686cd349f63bdd 1 parent 9f925e6
@kostis kostis authored
Showing with 19 additions and 1 deletion.
  1. +6 −1 Makefile
  2. +12 −0 src/proper.app.src
  3. +1 −0  vsn.mk
View
7 Makefile
@@ -13,9 +13,11 @@ TMP_PATTERN=*~ \\\#*\\\# *.dump
TXT_FILES=COPYING Makefile README $(DOC_DIR)/overview.edoc
RELEASE_FILE=proper.tar.gz
+include vsn.mk
+
APP_SRC_FILES=$(wildcard $(APP_SRC_DIR)/*.erl)
APP_MODULES=$(APP_SRC_FILES:$(APP_SRC_DIR)/%.erl=%)
-APP_BIN_FILES=$(APP_MODULES:%=$(APP_BIN_DIR)/%.beam)
+APP_BIN_FILES=$(APP_MODULES:%=$(APP_BIN_DIR)/%.beam) $(APP_BIN_DIR)/proper.app
HDR_FILES=$(wildcard $(HDR_DIR)/*.hrl)
DOC_FILES=$(addprefix $(DOC_DIR)/, $(DOC_PATTERN) $(addsuffix .html, $(APP_MODULES)))
TST_SRC_FILES=$(wildcard $(TST_SRC_DIR)/*.erl)
@@ -65,6 +67,9 @@ $(APP_BIN_FILES): $(HDR_FILES)
$(APP_BIN_DIR)/%.beam: $(APP_SRC_DIR)/%.erl
$(ERLC) $(ERLC_FLAGS) $(APP_ERLC_FLAGS) $<
+$(APP_BIN_DIR)/%.app: $(APP_SRC_DIR)/%.app.src vsn.mk Makefile
+ sed -e s^%PROPER_VSN%^$(PROPER_VSN)^ $< > $@
+
tests: compile $(TST_BIN_FILES)
$(ENTER_ERL) eunit:test({dir,"$(TST_BIN_DIR)"},$(EUNIT_OPTIONS)) $(EXIT_ERL)
View
12 src/proper.app.src
@@ -0,0 +1,12 @@
+{application, proper,
+ [{description, "A property-based testing tool for Erlang inspired by QuickCheck"},
+ {vsn, "%PROPER_VSN%"},
+ {modules, [proper,
+ proper_arith,
+ proper_extra,
+ proper_shrink,
+ proper_symb,
+ proper_types]},
+ {registered, []},
+ {applications, [compiler, erts, kernel, stdlib, crypto]},
+ {env, []}]}.
View
1  vsn.mk
@@ -0,0 +1 @@
+PROPER_VSN = 1.0
Please sign in to comment.
Something went wrong with that request. Please try again.