Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add Makefile for automating and documenting common recipes

  • Loading branch information...
commit 29eec503800a2acf6668884deb7596cd3b900c92 1 parent 9f57595
Joseph Wayne Norton norton authored

Showing 4 changed files with 69 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 0  .gitignore
  2. +1 2  .travis.yml
  3. +51 0 Makefile
  4. +15 0 rebar.config.doc
2  .gitignore
... ... @@ -1,4 +1,6 @@
  1 +.eqc-info
1 2 .eunit/
  3 +.qc/
2 4 deps/
3 5 ebin/
4 6 erl_crash.dump
3  .travis.yml
@@ -2,5 +2,4 @@ language: erlang
2 2 otp_release:
3 3 - R15B02
4 4 - R14B04
5   - - R13B04
6   -script: "./rebar compile && ./rebar xref && ./rebar skip_deps=true eunit"
  5 +script: "make clean compile xref test"
51 Makefile
... ... @@ -0,0 +1,51 @@
  1 +
  2 +REBAR?=./rebar
  3 +
  4 +.PHONY: all clean deps compile xref doc test eunit eqc proper triq \
  5 + compile-for-eunit compile-for-eqc compile-for-proper compile-for-triq
  6 +
  7 +all: compile
  8 +
  9 +deps:
  10 + $(REBAR) get-deps
  11 +
  12 +clean:
  13 + $(REBAR) clean
  14 + @rm -rf .qc
  15 +
  16 +compile:
  17 + $(REBAR) compile
  18 +
  19 +xref:
  20 + $(REBAR) xref skip_deps=true
  21 +
  22 +doc:
  23 + @rm -rf README.md doc/edoc-info doc/*.md
  24 + $(REBAR) -C rebar.config.doc get-deps compile
  25 + $(REBAR) -C rebar.config.doc doc skip_deps=true
  26 +
  27 +test: eunit
  28 +
  29 +eunit: compile-for-eunit
  30 + $(REBAR) eunit skip_deps=true
  31 +
  32 +eqc: compile-for-eqc
  33 + $(REBAR) eqc skip_deps=true
  34 +
  35 +proper: compile-for-proper
  36 + @echo "rebar does not implement a 'proper' command" && false
  37 +
  38 +triq: compile-for-triq
  39 + $(REBAR) triq skip_deps=true
  40 +
  41 +compile-for-eunit:
  42 + $(REBAR) compile eunit compile_only=true
  43 +
  44 +compile-for-eqc:
  45 + $(REBAR) -D QC -D QC_EQC compile eqc compile_only=true
  46 +
  47 +compile-for-proper:
  48 + $(REBAR) -D QC -D QC_PROPER compile eqc compile_only=true
  49 +
  50 +compile-for-triq:
  51 + $(REBAR) -D QC -D QC_TRIQ compile triq compile_only=true
15 rebar.config.doc
... ... @@ -0,0 +1,15 @@
  1 +%%% -*- mode: erlang -*-
  2 +
  3 +{edoc_opts, [{doclet, asciiedown_doclet}
  4 + , {app_default, "http://www.erlang.org/doc/man"}
  5 + , {new, true}
  6 + , {packages, false}
  7 + , {stylesheet, ""} % don't copy stylesheet.css
  8 + , {image, ""} % don't copy erlang.png
  9 + , {top_level_readme, {"./README.md", "https://github.com/ubf/ubf-eep8"}}
  10 + ]}.
  11 +
  12 +{deps, [{meck, "", {git, "git://github.com/norton/meck.git"}}
  13 + , {edown, "", {git, "git://github.com/norton/edown.git"}}
  14 + , {asciiedoc, "", {git, "git://github.com/norton/asciiedoc.git"}}
  15 + ]}.

0 comments on commit 29eec50

Please sign in to comment.
Something went wrong with that request. Please try again.