-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (34 loc) · 1.01 KB
/
Makefile
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
#!/usr/bin/make
# This is the sophomorix Makefile
# for Debian packaging (make DESTDIR=/root/sophomorix)
DESTDIR=
# Debian
#====================================
# Homes
#HOME=$(DESTDIR)/home
# Developement
#USERROOT=$(DESTDIR)/root
# Python Module
PYTHON_MODULE_DIR=$(DESTDIR)/usr/lib/python3/dist-packages/
PYTHON_BINARY_DIR=$(DESTDIR)/usr/sbin/
help:
@echo ' '
@echo 'Most common options of this Makefile:'
@echo '-------------------------------------'
@echo ' '
@echo ' make help'
@echo ' show this help'
@echo ' '
@echo ' sudo make install'
@echo ' install module and script'
@echo ' '
@echo ' sudo make uninstall'
@echo ' uninstall module and script'
@echo ' '
install:
@install -d -m755 -oroot -groot $(PYTHON_MODULE_DIR)
@install -m644 -oroot -groot ./module/python_sandbox_module.py $(PYTHON_MODULE_DIR)
@install -m755 -oroot -groot ./script/python_sandbox $(PYTHON_BINARY_DIR)
uninstall:
@rm $(PYTHON_MODULE_DIR)python_sandbox_module.py
@rm $(PYTHON_BINARY_DIR)python_sandbox