Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mtproto_proxy
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
mtproto_proxy
Commits
bb75d8a3
Unverified
Commit
bb75d8a3
authored
Sep 21, 2018
by
Сергей Прохоров
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use `DESTDIR` makefile convention
parent
15b264c9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
Makefile
Makefile
+5
-6
No files found.
Makefile
View file @
bb75d8a3
INSTALL_BASE
:=
/opt
DESTDIR
:=
/opt
INSTALL_TO
:=
$(INSTALL_BASE)
REBAR3
:=
./rebar3
REBAR3
:=
./rebar3
SERVICE
:=
/etc/systemd/system/mtproto-proxy.service
SERVICE
:=
/etc/systemd/system/mtproto-proxy.service
LOGDIR
:=
/var/log/mtproto-proxy
LOGDIR
:=
/var/log/mtproto-proxy
...
@@ -23,14 +22,14 @@ $(LOGDIR):
...
@@ -23,14 +22,14 @@ $(LOGDIR):
install
:
$(LOGDIR)
install
:
$(LOGDIR)
sudo
useradd
-r
$(USER)
||
true
sudo
useradd
-r
$(USER)
||
true
cp
-n
-r
_build/prod/rel/mtp_proxy
$(
INSTALL_BASE
)
cp
-n
-r
_build/prod/rel/mtp_proxy
$(
DESTDIR
)
mkdir
-p
$(
INSTALL_BASE
)
/mtp_proxy/log
mkdir
-p
$(
DESTDIR
)
/mtp_proxy/log
chmod
777
$(
INSTALL_BASE
)
/mtp_proxy/log
chmod
777
$(
DESTDIR
)
/mtp_proxy/log
cp
-n
config/mtproto-proxy.service
$(SERVICE)
cp
-n
config/mtproto-proxy.service
$(SERVICE)
systemctl daemon-reload
systemctl daemon-reload
uninstall
:
uninstall
:
# TODO: ensure service is stopped
# TODO: ensure service is stopped
rm
$(SERVICE)
rm
$(SERVICE)
rm
-r
$(
INSTALL_BASE
)/mtp_proxy
rm
-r
$(
DESTDIR
)/mtp_proxy
systemctl
daemon-reload
systemctl
daemon-reload
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment