Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/processone/ejabberd.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2022-05-20 12:24:39 +0300
committerBadlop <badlop@process-one.net>2022-05-23 14:57:06 +0300
commit93f994d50a243698f0eedf25ecfc9a3d8e233fda (patch)
tree3e71c8a7270908d9e7fde4f365c8741c5ecd113c /Makefile.in
parent75a771bfec3626145d404349fdaec4f0eef83bbc (diff)
Generate start scripts in "make all", not in "make install" (#3821)
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in30
1 files changed, 16 insertions, 14 deletions
diff --git a/Makefile.in b/Makefile.in
index 7358982f6..0216341d6 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -152,7 +152,7 @@ else
endif
endif
-all: deps src
+all: scripts deps src
deps: $(DEPSDIR)/.got
@@ -297,6 +297,18 @@ ejabberdctl.relive:
-e "s*{{epmd}}*@EPMD@*g" ejabberdctl.template \
> ejabberdctl.relive
+ejabberd.init:
+ $(SED) -e "s*@ctlscriptpath@*$(SBINDIR)*g" \
+ -e "s*@installuser@*$(INIT_USER)*g" ejabberd.init.template \
+ > ejabberd.init
+ chmod 755 ejabberd.init
+
+ejabberd.service:
+ $(SED) -e "s*@ctlscriptpath@*$(SBINDIR)*g" \
+ -e "s*@installuser@*$(INIT_USER)*g" ejabberd.service.template \
+ > ejabberd.service
+ chmod 644 ejabberd.service
+
ejabberdctl.example: vars.config
$(SED) -e "s*{{installuser}}*@INSTALLUSER@*g" \
-e "s*{{config_dir}}*${ETCDIR}*g" \
@@ -308,7 +320,9 @@ ejabberdctl.example: vars.config
-e "s*{{epmd}}*@EPMD@*g" ejabberdctl.template \
> ejabberdctl.example
-install: copy-files ejabberdctl.example
+scripts: ejabberd.init ejabberd.service ejabberdctl.example
+
+install: copy-files
#
# Configuration files
$(INSTALL) -d -m 750 $(G_USER) $(DESTDIR)$(ETCDIR)
@@ -329,18 +343,6 @@ install: copy-files ejabberdctl.example
[ -f $(DEPSDIR)/elixir/bin/elixir ] && $(INSTALL) -m 550 $(G_USER) $(DEPSDIR)/elixir/bin/elixir $(DESTDIR)$(BINDIR)/elixir || true
[ -f $(DEPSDIR)/elixir/bin/mix ] && $(INSTALL) -m 550 $(G_USER) $(DEPSDIR)/elixir/bin/mix $(DESTDIR)$(BINDIR)/mix || true
#
- # Init script
- $(SED) -e "s*@ctlscriptpath@*$(SBINDIR)*g" \
- -e "s*@installuser@*$(INIT_USER)*g" ejabberd.init.template \
- > ejabberd.init
- chmod 755 ejabberd.init
- #
- # Service script
- $(SED) -e "s*@ctlscriptpath@*$(SBINDIR)*g" \
- -e "s*@installuser@*$(INIT_USER)*g" ejabberd.service.template \
- > ejabberd.service
- chmod 644 ejabberd.service
- #
# Spool directory
$(INSTALL) -d -m 750 $(O_USER) $(DESTDIR)$(SPOOLDIR)
$(CHOWN_COMMAND) -R @INSTALLUSER@ $(DESTDIR)$(SPOOLDIR) >$(CHOWN_OUTPUT)