1
0
mirror of https://github.com/natnat-mc/moonbuild synced 2026-05-28 19:59:40 +02:00

added install target

This commit is contained in:
Codinget
2020-11-08 00:44:42 +01:00
parent b1f57c8929
commit fcd3b07572
2 changed files with 8 additions and 0 deletions
+5
View File
@@ -16,6 +16,11 @@ with public default target 'all'
\after 'bin'
\after 'lib'
with public target 'install'
\depends 'out/moonbuild'
\produces '/usr/local/bin/moonbuild'
\fn => _.cmd 'sudo', 'cp', @infile, @outfile
with public target 'clean'
\fn => _.cmd RM, LIB_LUA
\fn => _.cmd RM, BIN_LUA
+3
View File
@@ -16,6 +16,9 @@ MODULES = $(shell echo $(foreach lib, $(LIB_LUA), $(patsubst %.lua, %, $(lib)))
all: bin lib
install: all
sudo cp out/moonbuild /usr/local/bin/moonbuild
clean:
$(RM) $(LIB_LUA)
$(RM) $(BIN_LUA)