added install target

main
Codinget 4 years ago
parent b1f57c8929
commit fcd3b07572
  1. 5
      Build.moon
  2. 3
      Makefile

@ -16,6 +16,11 @@ with public default target 'all'
\after 'bin' \after 'bin'
\after 'lib' \after 'lib'
with public target 'install'
\depends 'out/moonbuild'
\produces '/usr/local/bin/moonbuild'
\fn => _.cmd 'sudo', 'cp', @infile, @outfile
with public target 'clean' with public target 'clean'
\fn => _.cmd RM, LIB_LUA \fn => _.cmd RM, LIB_LUA
\fn => _.cmd RM, BIN_LUA \fn => _.cmd RM, BIN_LUA

@ -16,6 +16,9 @@ MODULES = $(shell echo $(foreach lib, $(LIB_LUA), $(patsubst %.lua, %, $(lib)))
all: bin lib all: bin lib
install: all
sudo cp out/moonbuild /usr/local/bin/moonbuild
clean: clean:
$(RM) $(LIB_LUA) $(RM) $(LIB_LUA)
$(RM) $(BIN_LUA) $(RM) $(BIN_LUA)

Loading…
Cancel
Save