##############################################################################
#
#  wrapper Makefile for MegaPOV 1.0 - Linux version, source release
#
#  created December 2002 by Christoph Hormann
#
##############################################################################
#
#  Usage instructions
#  ==================
#
#     This makefile builds and installs MegaPOV on a unix system.
#     For building instructions see 'unix/Makefile'.
#
##############################################################################


libdir = /usr/local/share/megapov
docdir = /usr/local/share/doc/megapov-1.0

#
# make stuff
#

# ========================================


default: build

build:
	cd unix && $(MAKE)

install:
	cd unix && $(MAKE) install
	@if test ! -d /usr/local/share; \
	then mkdir /usr/local/share; \
	fi;
	@if test ! -d $(libdir); \
	then mkdir $(libdir); \
	fi;
	@if test ! -d /usr/local/share/doc; \
	then mkdir /usr/local/share/doc; \
	fi;
	@if test ! -d $(docdir); \
	then mkdir $(docdir); \
	fi;
	cp -f -R ./scenes $(libdir)/
	cp -f -R ./include $(libdir)/
	cp -f -R ./manual/* $(docdir)/
