displays the information of your Palms ​AquaDiveLog or your PCs Subsurface logbook on your website
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

52 lines
1.7 KiB

# Makefile for phpdivelog
# $Id$
DESTDIR=
prefix=/usr/local
datarootdir=$(DESTDIR)$(prefix)/share
datadir=$(datarootdir)/phpdivelog
configdir=$(DESTDIR)/etc
INSTALL=install
INSTALL_DATA=$(INSTALL) -m 644
WEBROOT=$(DESTDIR)/var/www
LINKTO=$(WEBROOT)/phpdivelog
install: installdirs
$(INSTALL_DATA) *.php $(datadir)
$(INSTALL_DATA) inc/*.inc $(datadir)/inc
$(INSTALL_DATA) lang/* $(datadir)/lang
cp -pr templates/* $(datadir)/templates
cp -pr install/adl/* $(datadir)/install/adl
cp -pr install/subsurface/* $(datadir)/install/adl
cp -pr images/emoticons/* $(datadir)/images/emoticons
$(INSTALL_DATA) install/LICENSE $(datadir)/install
$(INSTALL_DATA) install/README $(datadir)/install
$(INSTALL_DATA) install/history $(datadir)/install
$(INSTALL_DATA) install/*.txt $(datadir)/install
if [ ! -f $(configdir)/pdlpwd ]; then $(INSTALL_DATA) install/etc/pdlpwd $(configdir); fi
cp -pr diver/demo/* $(datadir)/diver/demo
touch $(datadir)/cache/.placeholder
if [ ! -L $(LINKTO) ]; then ln -s $(datadir) $(LINKTO); fi
installdirs:
mkdir -p $(datadir)/templates/aqua/images
mkdir -p $(datadir)/templates/default/images
mkdir -p $(datadir)/install/adl/template
mkdir -p $(datadir)/install/subsurface
mkdir -p $(datadir)/lang
mkdir -p $(datadir)/images/emoticons
mkdir -p $(datadir)/inc
mkdir -p $(datadir)/diver/demo/data
mkdir -p $(datadir)/diver/demo/fotos/dive
mkdir -p $(datadir)/diver/demo/fotos/site
mkdir -p $(datadir)/diver/demo/images
mkdir -p $(datadir)/cache
if [ ! -e $(WEBROOT) ]; then mkdir -p $(WEBROOT); fi
if [ ! -e $(configdir) ]; then mkdir -p $(configdir); fi
uninstall:
if [ "`readlink $(LINKTO)`" = "$(datadir)" ]; then rm -f $(LINKTO); fi
rm -rf $(datadir)
rm -f $(configdir)/pdlpwd