diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-06-24 17:27:09 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-06-24 17:27:45 -0700 |
| commit | 034376f5f76ef5688199fa9df9205c9b5a5a3e5f (patch) | |
| tree | 8e6155285ca9e53026c7ed4a6aa57a54fec6b9dd | |
| parent | ad342b63b7b6f07f9c8dc44fc09f7d478b7bb1e0 (diff) | |
Slightly tidier install without making a local nomsu$version file, just
put it directly in $prefix/bin/
| -rw-r--r-- | Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -60,9 +60,10 @@ install: build version optimize fi; \ fi; \ version="`cat version`"; \ - echo "#!$(LUA_BIN)\\nlocal NOMSU_VERSION, NOMSU_PREFIX = [[$$version]], [[$$prefix]]" | cat - nomsu.lua > nomsu$$version; \ mkdir -pv $$prefix/bin $$prefix/lib/nomsu/$$version $$prefix/share/nomsu/$$version \ - && cp -v nomsu nomsu$$version $$prefix/bin \ + && echo "#!$(LUA_BIN)\\nlocal NOMSU_VERSION, NOMSU_PREFIX = [[$$version]], [[$$prefix]]" | cat - nomsu.lua > $$prefix/bin/nomsu$$version \ + && chmod +x $$prefix/bin/nomsu$$version \ + && cp -v nomsu $$prefix/bin \ && cp -rv $(LUA_FILES) $(PEG_FILE) core lib tests $$prefix/share/nomsu/$$version; .PHONY: uninstall |
