Browse Source

Add pre/post hooks

pull/211/head
ncshaw 3 years ago
parent
commit
baed881e16
2 changed files with 12 additions and 7 deletions
  1. +0
    -5
      Makefile
  2. +12
    -2
      rebar.config

+ 0
- 5
Makefile View File

@ -16,11 +16,6 @@ distclean: clean
build:
ifeq ($(OS),Windows_NT)
./configure.ps1
else
./configure
endif
$(REBAR) compile

+ 12
- 2
rebar.config View File

@ -36,5 +36,15 @@
verbose
]}.
{pre_hooks, [{"", compile, "escript bin/enc compile"}]}.
{post_hooks, [{"", clean, "escript bin/enc clean"}]}.
{pre_hooks,
[
{"(linux|solaris|freebsd|netbsd|openbsd|dragonfly|darwin|gnu)", compile, "./configure && escript enc compile"},
{"(win32|win64)", compile, "./configure.ps1 && escript enc compile"}
]
}.
{post_hooks,
[
{"(linux|solaris|freebsd|netbsd|openbsd|dragonfly|darwin|gnu)", clean, "./configure && escript enc clean"},
{"(win32|win64)", clean, "./configure.ps1 && escript enc clean"}
]
}.

Loading…
Cancel
Save