# File: 	Makefile
#
# Description:  The makefile for treeps directory
#		decends into subdirectories and builds libraries,
#		and eventually a treeps executable. The final build
#		directory is platform specific.
#
# Author:	George MacDonald
#
# Copyright:	Copyright (c) 1993, Pulsar Software Inc.
#		All Rights Reserved, Unpublished rights reserved.
#
# History:	George MacDonald	10/10/93	Created
# 		George MacDonald	10/17/98	New Dir Structure
#


SUBDIRS= lib Xpsi list tree 

all clean clobber lint: 
	@./scripts/checkX11R6
	@for i in $(SUBDIRS); do cd $$i; echo Descending into $$i ; make $@ ; cd .. ; done
	cd `uname`; make $@    		  # Make platform specific files

	cd `uname`; make -f treeps.mkf $@ # Make the platform specific prog
	touch shiplist


install::
	cd `uname`; make -f treeps.mkf $@ 
	

manifest: shiplist 
	for i in `cat shiplist`; do ls -l $$i ; done > MANIFEST

# Manually add to shiplist - change later

icon_flist:
	find ./icons -type f | sort > icon_flist

release:: treeps.tar

treeps.tar: manifest
	tar cvTf shiplist treeps.tar 


