1# 2# Makefile to publish a Dokuwiki plugin 3# Copyright (C) 2013 Elie Roux <elie.roux@telecom-bretagne.eu> 4# 5# This library is free software; you can redistribute it and/or 6# modify it under the terms of the GNU Lesser General Public 7# License as published by the Free Software Foundation; either 8# version 2.1 of the License, or (at your option) any later version. 9# 10# This library is distributed in the hope that it will be useful, 11# but WITHOUT ANY WARRANTY; without even the implied warranty of 12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13# Lesser General Public License for more details. 14# 15# You should have received a copy of the GNU Lesser General Public 16# License along with this library; if not, write to the Free Software 17# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 18# -------------------------------------------------------------------- 19# 20 21 22NAME = texit 23FILES = syntax.php texitrender.php latex.php config.php README.md LICENSE.GPLv2 plugin.info.txt action.php 24DIRS = conf/ lang/ 25 26all : tgz zip 27 28zip: clean $(FILES) $(DIRS) 29 @echo "Building zip file..." 30 @mkdir -p $(NAME) 31 @cp -R $(FILES) $(DIRS) $(NAME) 32 @zip -rq $(NAME).zip --exclude \*~ -- $(NAME) 33 34tgz: clean $(FILES) $(DIRS) 35 @echo "Building tgz file..." 36 @mkdir -p $(NAME) 37 @cp -R $(FILES) $(DIRS) $(NAME) 38 @tar -czf $(NAME).tgz --exclude=\*\*/\*~ -- $(NAME) 39 40clean: 41 @rm -rf $(NAME).tgz $(NAME).zip $(NAME) 42 43