From 034376f5f76ef5688199fa9df9205c9b5a5a3e5f Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 24 Jun 2018 17:27:09 -0700 Subject: [PATCH] Slightly tidier install without making a local nomsu$version file, just put it directly in $prefix/bin/ --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index cf25fca..39758a6 100644 --- a/Makefile +++ b/Makefile @@ -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