]> git.lizzy.rs Git - luairc.git/blobdiff - Makefile
let's distribute the license too
[luairc.git] / Makefile
index 8e3047d2186d4ee5d314dbcdc4724ed7b0a59fa4..3474efabbd416b134a60546cb4e3bf7fdce35018 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -11,6 +11,7 @@ MOD_LUAS = src/irc/channel.lua \
            src/irc/message.lua \
            src/irc/misc.lua
 TEST_LUAS = test/test.lua
+DOC_LUAS = src/callbacks.luadoc
 VERSION = $(shell grep '^_VERSION =' $(MAIN_LUA) | sed "s/_VERSION = '\(.*\)'/\1/" | tr ' ' '-')
 
 build :
@@ -21,9 +22,9 @@ install :
        mkdir -p $(MOD_DIR)
        cp $(MOD_LUAS) $(MOD_DIR)
 
-doc : $(MAIN_LUA) $(MOD_LUAS)
+doc : $(MAIN_LUA) $(MOD_LUAS) $(DOC_LUAS)
        mkdir -p $(DOC_DIR)
-       $(LUADOC) --nofiles -d $(DOC_DIR) $(MAIN_LUA) $(MOD_LUAS)
+       $(LUADOC) --nofiles -d $(DOC_DIR) $(MAIN_LUA) $(MOD_LUAS) $(DOC_LUAS)
        @touch doc
 
 clean :
@@ -31,9 +32,9 @@ clean :
 
 dist : $(VERSION).tar.gz
 
-$(VERSION).tar.gz : $(MAIN_LUA) $(MOD_LUAS) $(TEST_LUAS) doc Makefile README TODO
+$(VERSION).tar.gz : $(MAIN_LUA) $(MOD_LUAS) $(TEST_LUAS) doc Makefile README TODO LICENSE
        @echo "Creating $(VERSION).tar.gz"
        @mkdir $(VERSION)
-       @cp -r src test doc Makefile README TODO $(VERSION)
+       @cp -r src test doc Makefile README TODO LICENSE $(VERSION)
        @tar czf $(VERSION).tar.gz $(VERSION)
        @rm -rf $(VERSION)