forked from actboy168/lua-debug
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (24 loc) · 860 Bytes
/
Makefile
File metadata and controls
30 lines (24 loc) · 860 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
.PHONY: all download_deps build_luamake init_luamake install
all: download_deps build_luamake
luamake/luamake build --release
build_luamake: init_luamake
@echo "Building luamake..."
git submodule update --init --recursive
cd luamake && compile/build.sh
download_deps: build_luamake
luamake/luamake lua compile/download_deps.lua
init_luamake:
@if [ -d "luamake" ]; then \
if [ -d "luamake/.git" ]; then \
echo "Updating luamake repository..."; \
(cd luamake && git pull && git submodule update --remote); \
else \
echo "Error: 'luamake' exists but is not a Git repository."; \
fi; \
else \
echo "Cloning luamake repository..."; \
git clone --recurse-submodules https://github.com/actboy168/luamake.git; \
fi
install: all
@echo "Installing Lua Debugger..."
luamake/luamake lua compile/install.lua