This repository was archived by the owner on May 23, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.in
More file actions
64 lines (49 loc) · 1.21 KB
/
Makefile.in
File metadata and controls
64 lines (49 loc) · 1.21 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
ERLC = @ERLC@
ERL = @ERL@
ERLCFLAGS = @ERLCFLAGS@
SUBDIRS = src/forse
BINDIR = ebin
INCDIR = include
SRCDIR = src
ERL_HEADERS := $(wildcard $(INCDIR)/*.hrl)
ERL_SOURCES := $(wildcard $(SRCDIR)/*.erl)
ERL_OBJS := $(patsubst $(SRCDIR)/%.erl,$(BINDIR)/%.beam,$(ERL_SOURCES))
##########################################
ifeq ($(V),1)
Q :=
NQ := @:
MAKE := $(MAKE)
else
Q := @
NQ := @echo
MAKE := $(MAKE) --no-print-directory
endif
first: all
.SUFFIXES: .beam .erl
$(BINDIR)/%.beam: $(SRCDIR)/%.erl $(ERL_HEADERS)
$(NQ) "compiling" $<
$(Q) $(ERLC) -I $(INCDIR) $(ERLCFLAGS) -b beam -o $(BINDIR) $<
all: $(ERL_OBJS) all-recursive
all-recursive:
$(Q) for dir in $(SUBDIRS) ; do \
$(MAKE) -C $$dir ; \
done
relazione:
$(Q) $(MAKE) -C doc
check:
$(Q) dialyzer -I $(INCDIR) -Wrace_conditions --no_native --src src
clean:
$(NQ) "cleaning"
$(Q) rm -f *~
$(Q) rm -f $(ERL_OBJS)
$(Q) for dir in $(SUBDIRS) doc ; do \
$(MAKE) -C $$dir clean ; \
done
distclean: clean
$(NQ) "distcleaning"
$(Q) rm -f aclocal.m4 config.log config.status environment Makefile
$(Q) rm -rf autom4te.cache
$(Q) for dir in $(SUBDIRS) doc ; do \
$(MAKE) -C $$dir distclean ; \
done
.PHONY: all all-recursive check clean distclean first relazione