Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Turn into an application

  • Loading branch information...
commit f5906366d8303fa6b1e0882c6357718b6f16ac9d 1 parent 48470af
Devin Torres authored
19 Makefile
View
@@ -0,0 +1,19 @@
+ERL := erl
+ERLC := erlc
+
+ERLC_FLAGS := -Wall +native
+
+SRC := $(wildcard src/*.erl)
+BEAMS := $(SRC:src/%.erl=ebin/%.beam)
+
+compile: $(BEAMS)
+ @cp src/*.app ebin/
+
+clean:
+ rm -f ebin/*.{app,beam}
+
+.SUFFIXES: .erl .beam
+.PHONY: clean
+
+ebin/%.beam : src/%.erl
+ $(ERLC) $(ERLC_FLAGS) -o $(dir $@) $<
9 src/jsonerl.app
View
@@ -0,0 +1,9 @@
+{application, jsonerl,
+ [{description, "yet another but slightly different erlang <-> json encoder/decoder"},
+ {vsn, "0.1"},
+ {modules, [jsonerl]},
+ {registered, []},
+ {applications, [kernel, stdlib]},
+ {included_applications, []},
+ {env, []}
+]}.
0  jsonerl.erl → src/jsonerl.erl
View
File renamed without changes
0  jsonerl.hrl → src/jsonerl.hrl
View
File renamed without changes
Please sign in to comment.
Something went wrong with that request. Please try again.