1
0
mirror of https://github.com/Adorable-Catgirl/LuaComp.git synced 2025-04-08 12:48:19 +10:00

Install target for Linux

This commit is contained in:
Atirut Wattanamongkol 2021-04-16 19:24:54 +07:00
parent ff2481093d
commit 1c6ea921b4

View File

@ -1,19 +1,27 @@
ifeq ($(OS),Windows_NT) ifeq ($(OS),Windows_NT)
# If you're using Windows, change the path to wherever you put LuaComp in. # If you're using Windows, change the path to wherever you put LuaComp in.
COMMAND = lua53 "./luacomp.lua" COMMAND = lua53 "./luacomp.lua"
# COMMAND = lua53 "C:/Standalone Programs/luacomp.lua" # COMMAND = lua53 "C:/Standalone Programs/luacomp.lua"
else else
COMMAND = luacomp
COMMAND = luacomp
endif endif
build: build:
@echo Building LuaComp... @echo Building LuaComp...
@${COMMAND} ./src/init.lua -O ./luacomp.lua @${COMMAND} ./src/init.lua -O ./luacomp.lua
install:
ifeq ($(OS),Windows_NT)
@echo Installing is not supported on Windows
else
@echo Installing LuaComp...
@echo "#!/usr/bin/env lua5.3" | cat - ./luacomp.lua > ~/bin/luacomp
@chmod +x ~/bin/luacomp
endif
clean: clean:
ifeq ($(OS),Windows_NT) ifeq ($(OS),Windows_NT)
rmdir build /s /q @rmdir build /s /q
else else
rm -rf build @rm -rf build
endif endif