Skip to content

Commit

Permalink
Make install/uninstall targets
Browse files Browse the repository at this point in the history
  • Loading branch information
spc476 committed Sep 18, 2019
1 parent 9e2b74a commit 9d31a52
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,17 @@ luacheck:
clean:
$(RM) $(shell find . -name '*~')
$(RM) $(shell find . -name '*.so')

install: all
$(INSTALL) -d $(DESTDIR)$(LIBDIR)/port70
$(INSTALL) -d $(DESTDIR)$(LUADIR)/port70
$(INSTALL) -d $(DESTDIR)$(LUADIR)/port70/handlers
$(INSTALL_DATA) port70/*.lua $(DESTDIR)$(LUADIR)/port70
$(INSTALL_DATA) port70/handlers/*.lua $(DESTDIR)$(LUADIR)/port70/handlers
$(INSTALL_PROGRAM) port70/*.so $(DESTDIR)$(LIBDIR)/port70
$(INSTALL_PROGRAM) port70.lua $(DESTDIR)$(BINDIR)/port70

uninstall:
$(RM) -r $(DESTDIR)$(LUADIR)/port70
$(RM) -r $(DESTDIR)$(LIBDIR)/port70
$(RM) -r $(DESTDIR)$(BINDIR)/port70

0 comments on commit 9d31a52

Please sign in to comment.