Skip to content
This repository
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 46 lines (28 sloc) 0.857 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45

#include conf/include.mk

SHELL = /bin/sh

#tags command and options
TAG_CMD = etags
TAG_FLAGS =

LIB_FILES = /usr/local/lib/erlang/lib/sg*/*.erl /usr/local/lib/erlang/lib/sg*/src/*.erl

SRC_FILES = src/sgte.erl src/sgte_render.erl src/sgte_parse.erl

TAG_FILES = $(LIB_FILES) $(SRC_FILES)

#Edoc variables
DOCDIR = doc

.PHONY: all conf conf_clean test docs unittest

all: conf compile

compile:
cd src&& $(MAKE)

conf:
cd conf&& $(MAKE)

conf_clean:
cd conf&& $(MAKE) clean


test: conf compile
cd test/src&& $(MAKE)

docs: $(SRC_FILES)
erl -noshell -run edoc_run files \
["'src/sgte.erl', 'src/sgte_parse.erl', 'src/sgte_render.erl', 'src/sgte_gettext.erl'"] \
'[{dir,"$(DOCDIR)"}]' -s init stop
tags: src/*.erl
cd src/ && $(TAG_CMD) $(TAG_FLAGS) $(TAG_FILES)

clean:
rm src/*.beam; rm ebin/*.beam; rm test/src/*.beam; rm test/ebin/*.beam

Something went wrong with that request. Please try again.