Innopolis University DevOps Playground
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
Ejabberd
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Сергей Титов
Ejabberd
Commits
f112a913
Commit
f112a913
authored
9 years ago
by
Paweł Chmielowski
Browse files
Options
Downloads
Patches
Plain Diff
Copy elixir files in copy-files makefile target
parent
1d5a441c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile.in
+11
-8
11 additions, 8 deletions
Makefile.in
with
11 additions
and
8 deletions
Makefile.in
+
11
−
8
View file @
f112a913
...
...
@@ -112,12 +112,19 @@ spec:
$(
ERL
)
-noinput
+B
-pa
ebin
-pa
deps/
*
/ebin
-eval
\
'case xml_gen:compile("tools/xmpp_codec.spec") of ok -> halt(0); _ -> halt(1) end.'
TO_DEST
=
$(
foreach path,
$(
1
)
,
$(
if
$(
filter deps/%,
$(
path
))
,
$(
patsubst deps/%,
$(
LIBDIR
)
/%,
$(
path
))
,
$(
patsubst %,
$(
LIBDIR
)
/ejabberd/%,
$(
path
))))
JOIN_PATHS
=
$(
if
$(
wordlist 2,1000,
$(
1
))
,
$(
firstword
$(
1
))
/
$(
call JOIN_PATHS,
$(
wordlist 2,1000,
$(
1
)))
,
$(
1
))
ELIXIR_TO_DEST
=
$(
LIBDIR
)
$(
wordlist 2,2,
$(
1
))
$(
wordlist 5,1000,
$(
1
))
DEPS_TO_DEST
=
$(
LIBDIR
)
$(
wordlist 2,1000,
$(
1
))
MAIN_TO_DEST
=
$(
LIBDIR
)
ejabberd
$(
1
)
TO_DEST_SINGLE
=
$(
if
$(
subst XdepsX,,X
$(
word 1,
$(
1
))
X
)
,
$(
call MAIN_TO_DEST,
$(
1
))
,
$(
if
$(
subst XlibX,,X
$(
word 3,
$(
1
))
X
)
,
$(
call DEPS_TO_DEST,
$(
1
))
,
$(
call ELIXIR_TO_DEST,
$(
1
))))
TO_DEST
=
$(
foreach path,
$(
1
)
,
$(
call JOIN_PATHS,
$(
call TO_DEST_SINGLE,
$(
subst /, ,
$(
path
)))))
FILTER_DIRS
=
$(
foreach path,
$(
1
)
,
$(
if
$(
wildcard
$(
path
)
/
*
)
,,
$(
path
)))
FILES_WILDCARD
=
$(
call FILTER_DIRS,
$(
foreach w,
$(
1
)
,
$(
wildcard
$(
w
))))
DEPS_FILES
:=
$(
call FILES_WILDCARD,deps/
*
/ebin/
*
.beam deps/
*
/ebin/
*
.app deps/
*
/priv/
*
deps/
*
/priv/lib/
*
deps/
*
/priv/bin/
*
deps/
*
/include/
*
.hrl
)
DEPS_FILES_FILTERED
:=
$(
filter-out %/epam,
$(
DEPS_FILES
))
DEPS_FILES
:=
$(
call FILES_WILDCARD,deps/
*
/ebin/
*
.beam deps/
*
/ebin/
*
.app deps/
*
/priv/
*
deps/
*
/priv/lib/
*
deps/
*
/priv/bin/
*
deps/
*
/include/
*
.hrl
deps/
*
/lib/
*
/ebin/
*
.beam deps/
*
/lib/
*
/ebin/
*
.app
)
DEPS_FILES_FILTERED
:=
$(
filter-out %/epam
deps/elixir/ebin/elixir.app
,
$(
DEPS_FILES
))
DEPS_DIRS
:=
$(
sort
deps/
$(
wildcard deps/
*
)
$(
dir
$(
DEPS_FILES
)))
MAIN_FILES
:=
$(
filter-out %/configure.beam,
$(
call FILES_WILDCARD,ebin/
*
.beam ebin/
*
.app priv/msgs/
*
.msg priv/lib/
*
include/
*
.hrl
))
...
...
@@ -129,7 +136,7 @@ endef
$(
foreach
file,
$(
DEPS_FILES_FILTERED
)
$(
MAIN_FILES
)
,
$(
eval
$(
call COPY_template,
$(
file
))))
$(call TO_DEST,$(MAIN_DIRS) $(DEPS_DIRS))
:
$(sort
$(call TO_DEST,$(MAIN_DIRS) $(DEPS_DIRS))
)
:
$(
INSTALL
)
-d
$@
$(call TO_DEST,deps/p1_pam/priv/bin/epam)
:
$(LIBDIR)/%: deps/% $(call TO_DEST
,
deps/p1_pam/priv/bin/)
...
...
@@ -172,10 +179,6 @@ install: all copy-files
-e
"s*@installuser@*
$(
INIT_USER
)
*"
ejabberd.init.template
\
>
ejabberd.init
chmod
755 ejabberd.init
# Install Elixir and Elixir dependancies
-$(
INSTALL
)
-m
644 deps/
*
/lib/
*
/ebin/
*
.app
$(
BEAMDIR
)
-$(
INSTALL
)
-m
644 deps/
*
/lib/
*
/ebin/
*
.beam
$(
BEAMDIR
)
rm
-f
$(
BEAMDIR
)
/configure.beam
#
# Binary C programs
$(
INSTALL
)
-d
$(
PBINDIR
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment