parse Changelog ("History") files and generate HTML pages
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.
 
 
 

33 lines
836 B

# Makefile for histview
# $Id$
DESTDIR=
prefix=/usr/local
datarootdir=$(DESTDIR)$(prefix)/share
datadir=$(datarootdir)/histview
docdir=$(datarootdir)/doc/histview
INSTALL=install
INSTALL_DATA=$(INSTALL) -m 644
WEBROOT=$(DESTDIR)/var/www
LINKTO=$(WEBROOT)/histview
install: installdirs
$(INSTALL_DATA) histview* $(datadir)
$(INSTALL_DATA) filelist.* $(datadir)
$(INSTALL_DATA) class.* $(datadir)
$(INSTALL_DATA) dl_latest.php $(datadir)
$(INSTALL_DATA) icons/* $(datadir)/icons
cp -pr doc/* $(docdir)
if [ ! -e $(LINKTO) ]; then ln -s $(datadir) $(LINKTO); fi
installdirs:
mkdir -p $(datadir)/icons
mkdir -p $(docdir)/apidoc/Api
if [ ! -e $(WEBROOT) ]; then mkdir -p $(WEBROOT); fi
uninstall:
linkstat=`readlink $(LINKTO)`
if [ "$linkstat" = "$(datadir)" ]; then rm -f $(LINKTO); fi
rm -rf $(datadir)
rm -rf $(docdir)