# LuDAP : Lightweight Users Directory Administration Protocol # $Header: /srv/cvs/sources/ludap/ludap/Makefile,v 1.1 2003/09/24 06:02:34 mose Exp $ # ------------------------------------------------------------------------ # copyright (C) 2003 mose . mose@ludap.org # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation (version 2 of the License). # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to # the Free Software Foundation, Inc., # 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # ------------------------------------------------------------------------ include configure.mk # ------------------------------------------------------------------------ all: install # ------------------------------------------------------------------------ install: init files web img doc htmldoc conf smarty templates tmp @echo --------------------------------------- @echo installed init: [ -d dox ] || $(MAKE) dox [ -d $(INSTALLDIR) ] || mkdir -m 775 $(INSTALLDIR) || exit 0 # ------------------------------------------------------------------------ files: ludap.lib.php setup.php setup.smarty.php forms.lib.php $(INSTALL) -p -o $(SUSER) -g $(WEBGROUP) -m 640 $? $(INSTALLDIR) doc: README INSTALL LICENCE.TXT [ -d $(DOCDIR) ] || mkdir -m 775 $(DOCDIR) || exit 0 $(INSTALL) -p -o $(SUSER) -g $(SGROUP) -m 644 $? $(DOCDIR) htmldoc: dox/html/* [ -d $(DOCDIR)/html ] || mkdir -m 775 $(DOCDIR)/html || exit 0 $(INSTALL) -p -o $(SUSER) -g $(SGROUP) -m 644 $? $(DOCDIR)/html conf: etc/*.dist [ -d $(CONFDIR) ] || mkdir -m 750 $(CONFDIR) || exit 0 $(INSTALL) -p -o $(SUSER) -g $(WEBGROUP) -m 640 $? $(CONFDIR) web: www/*.php [ -d $(WEBDIR) ] || mkdir -m 775 $(WEBDIR) || exit 0 $(INSTALL) -p -o $(SUSER) -g $(WEBGROUP) -m 640 $? $(WEBDIR) img: www/images/*.png [ -d $(WEBDIR)/images ] || mkdir -m 775 $(WEBDIR)/images || exit 0 $(INSTALL) -p -o $(SUSER) -g $(WEBGROUP) -m 640 $? $(WEBDIR)/images smarty: smarty_dir smarty_core smarty_plugins smarty_dir: smarty/*.php [ -d $(INSTALLDIR)/smarty ] || mkdir -m 775 $(INSTALLDIR)/smarty || exit 0 $(INSTALL) -p -o $(SUSER) -g $(WEBGROUP) -m 640 $? $(INSTALLDIR)/smarty smarty_core: smarty/core/*.php [ -d $(INSTALLDIR)/smarty/core ] || mkdir -m 775 $(INSTALLDIR)/smarty/core || exit 0 $(INSTALL) -p -o $(SUSER) -g $(WEBGROUP) -m 640 $? $(INSTALLDIR)/smarty/core smarty_plugins: smarty/plugins/*.php [ -d $(INSTALLDIR)/smarty/plugins ] || mkdir -m 775 $(INSTALLDIR)/smarty/plugins || exit 0 $(INSTALL) -p -o $(SUSER) -g $(WEBGROUP) -m 640 $? $(INSTALLDIR)/smarty/plugins templates: templates/*.tpl [ -d $(INSTALLDIR)/templates ] || mkdir -m 775 $(INSTALLDIR)/templates || exit 0 $(INSTALL) -p -o $(SUSER) -g $(WEBGROUP) -m 640 $? $(INSTALLDIR)/templates tmp: [ -d $(TMPDIR) ] || mkdir -m 775 $(TMPDIR) || exit 0 [ -d $(TMPDIR)/cache ] || mkdir -m 775 $(TMPDIR)/cache || exit 0 [ -d $(TMPDIR)/compil ] || mkdir -m 775 $(TMPDIR)/compil || exit 0 chown $(WEBUSER) $(TMPDIR) $(TMPDIR)/cache $(TMPDIR)/compil # ------------------------------------------------------------------------ dox: Doxyfile $(DOXYGEN) # ------------------------------------------------------------------------ clean: rm -rf dox/ uninstall: rm -rf $(TMPDIR) $(WEBDIR) $(LOGDIR) $(DOCDIR) $(CONFDIR)/*.dist $(INSTALLDIR) # ------------------------------------------------------------------------