aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 1aac0350..0e2c40db 100644
--- a/Makefile
+++ b/Makefile
@@ -76,7 +76,7 @@ build_bins:
76 rm src/bin/$$f.bak ;\ 76 rm src/bin/$$f.bak ;\
77 done 77 done
78 78
79built: src/luarocks/config.lua build_bins 79built: cleanup_bins src/luarocks/config.lua build_bins
80 touch built 80 touch built
81 @echo 81 @echo
82 @echo "Done. Type 'make install' to install into $(PREFIX)." 82 @echo "Done. Type 'make install' to install into $(PREFIX)."
@@ -98,12 +98,14 @@ check_makefile:
98 @echo "Makefile is sane." 98 @echo "Makefile is sane."
99 @echo 99 @echo
100 100
101clean: 101cleanup_bins:
102 for f in $(BIN_FILES) ;\ 102 for f in $(BIN_FILES) ;\
103 do \ 103 do \
104 sed -i.bak "s,^#!.*lua.*,#!/usr/bin/env lua,;/^package.path/d" src/bin/$$f ;\ 104 sed -i.bak "s,^#!.*lua.*,#!/usr/bin/env lua,;/^package.path/d" src/bin/$$f ;\
105 rm src/bin/$$f.bak ;\ 105 rm src/bin/$$f.bak ;\
106 done 106 done
107
108clean: cleanup_bins
107 rm -f src/luarocks/config.lua 109 rm -f src/luarocks/config.lua
108 rm -f built 110 rm -f built
109 111