Skip to content
This repository has been archived by the owner on Oct 3, 2018. It is now read-only.

Commit

Permalink
Add make install
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenwardy committed Aug 11, 2015
1 parent f007852 commit 16e5214
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
14 changes: 14 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
prefix=/usr/local

install:
-mkdir $(prefix)/share/mtpm
-mv mtpm.lua mtpm
install -m 0755 mtpm $(prefix)/bin
-mv mtpm mtpm.lua
install -m 0644 *.lua $(prefix)/share/mtpm

uninstall:
-rm -f $(prefix)/bin/mtpm
-rm -rf $(prefix)/share/mtpm

.PHONY: install
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,16 @@ $ luarocks --local install luafilesystem
$ luarocks --local install luajson
# Alternatively you could use sudo luarocks install

$ sudo make install

# You can skip this line if mods are in ~/.minetest/mods/
$ ./mtpm.lua config mod_location /path/to/minetest/mods/
$ mtpm config mod_location /path/to/minetest/mods/

# Install packages
$ ./mtpm.lua install package1 package2 package3
$ mtpm install package1 package2 package3

# Install mods from depends.txt
$ ./mtpm.lua -r depends.txt
$ mtpm -r depends.txt

# A query can be in one of these forms:
# basename - gets from repos (eg: mmdb, ModSearch)
Expand All @@ -41,7 +43,7 @@ $ ./mtpm.lua -r depends.txt
# * author/ must be before basename
# * versions (eg: =1.0.3) must be after basename
# * @repo must be after basename.
# See ./mtpm.lua --help
# See mtpm --help
```

Please note that this is a work in progress.
Expand Down

0 comments on commit 16e5214

Please sign in to comment.