Enclose makefile paths in quotes for safety
This commit is contained in:
parent
f91c3182cf
commit
a6bd98c3fb
20
makefile
20
makefile
|
@ -6,22 +6,22 @@ LUA_SHAREDIR=$(LUA_PREFIX)/share/lua/5.1
|
||||||
ldoc:
|
ldoc:
|
||||||
|
|
||||||
install: install_parts
|
install: install_parts
|
||||||
echo "lua $(LUA_SHAREDIR)/ldoc.lua \$$*" > $(DESTDIR)$(LUA_BINDIR)/ldoc
|
echo "lua $(LUA_SHAREDIR)/ldoc.lua \$$*" > "$(DESTDIR)$(LUA_BINDIR)/ldoc"
|
||||||
chmod +x $(DESTDIR)$(LUA_BINDIR)/ldoc
|
chmod +x "$(DESTDIR)$(LUA_BINDIR)/ldoc"
|
||||||
|
|
||||||
install_luajit: install_parts
|
install_luajit: install_parts
|
||||||
echo "luajit $(LUA_SHAREDIR)/ldoc.lua \$$*" > $(DESTDIR)$(LUA_BINDIR)/ldoc
|
echo "luajit $(LUA_SHAREDIR)/ldoc.lua \$$*" > "$(DESTDIR)$(LUA_BINDIR)/ldoc"
|
||||||
chmod +x $(DESTDIR)$(LUA_BINDIR)/ldoc
|
chmod +x "$(DESTDIR)$(LUA_BINDIR)/ldoc"
|
||||||
|
|
||||||
install_parts:
|
install_parts:
|
||||||
mkdir -p $(DESTDIR)$(LUA_SHAREDIR)
|
mkdir -p "$(DESTDIR)$(LUA_SHAREDIR)"
|
||||||
cp ldoc.lua $(DESTDIR)$(LUA_SHAREDIR)
|
cp ldoc.lua "$(DESTDIR)$(LUA_SHAREDIR)"
|
||||||
cp -r ldoc $(DESTDIR)$(LUA_SHAREDIR)
|
cp -r ldoc "$(DESTDIR)$(LUA_SHAREDIR)"
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
-rm $(DESTDIR)$(LUA_SHAREDIR)/ldoc.lua
|
-rm "$(DESTDIR)$(LUA_SHAREDIR)/ldoc.lua"
|
||||||
-rm -r $(DESTDIR)$(LUA_SHAREDIR)/ldoc
|
-rm -r "$(DESTDIR)$(LUA_SHAREDIR)/ldoc"
|
||||||
-rm $(DESTDIR)$(LUA_BINDIR)/ldoc
|
-rm "$(DESTDIR)$(LUA_BINDIR)/ldoc"
|
||||||
|
|
||||||
test: test-basic test-example test-md test-tables
|
test: test-basic test-example test-md test-tables
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue