If we're going to hide rebar from the user for make app we might as well use slightly better variable name.
diff --git a/Makefile b/Makefile
index 506b240..c0b6367 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
PREFIX:=../
-DEST:=$(PREFIX)$(APPID)
+DEST:=$(PREFIX)$(PROJECT)
REBAR=./rebar
@@ -23,5 +23,5 @@
@$(REBAR) analyze
app:
- @$(REBAR) create template=mochiwebapp dest=$(DEST) appid=$(APPID)
+ @$(REBAR) create template=mochiwebapp dest=$(DEST) appid=$(PROJECT)
diff --git a/README b/README
index cefb110..e51a0d7 100644
--- a/README
+++ b/README
@@ -9,7 +9,7 @@
occasionally for convenience.
To create a new mochiweb using project:
- make app APPID=project_name
+ make app PROJECT=project_name
To create a new mochiweb using project in a specific directory:
- make app APPID=project_name PREFIX=$HOME/projects/
+ make app PROJECT=project_name PREFIX=$HOME/projects/