-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (27 loc) · 781 Bytes
/
Copy pathMakefile
File metadata and controls
34 lines (27 loc) · 781 Bytes
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
# Directory variables
SRC_DIR = src
INSTALL_DIR = /usr/local/sbin
# List of Python scripts to install
SCRIPTS = echolog el-monitor el-server
# Default target
all:
@echo "Default make does not perform installation. Use 'make install' to install scripts."
# Install target
install:
@echo "Installing scripts to $(INSTALL_DIR)..."
@for script in $(SCRIPTS); do \
echo "Installing $$script..."; \
install -m 755 $(SRC_DIR)/$$script $(INSTALL_DIR)/$$script; \
done
# Uninstall target
uninstall:
@echo "Removing scripts from $(INSTALL_DIR)..."
@for script in $(SCRIPTS); do \
echo "Removing $$script..."; \
rm -f $(INSTALL_DIR)/$$script; \
done
# Clean target
clean:
@echo "Clean target does nothing for now..."
# Phony targets
.PHONY: all install uninstall clean