# Fungimol - an extensible system for designing atomic-scale objects.
# Copyright (C) 2000 Tim Freeman
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
# 
# This library 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
# Library General Public License for more details.
# 
# You should have received a copy of the GNU Library General Public
# License along with this library in the file COPYING.txt; if not,
# write to the Free Software Foundation, Inc., 59 Temple Place -
# Suite 330, Boston, MA 02111-1307, USA
#
# The author can be reached by email at tim@infoscreen.com, or by
# paper mail at:
#
# Tim Freeman
# 655 S. FairOaks Ave., Apt B-316
# Sunnyvale, CA 94086
#

.PHONY: all
all:
	-rm -f *.h
	ln -s ../*/*.h .
,PHONY:clean
clean:
	-rm -f *.h
.PHONY:install uninstall
ifdef INCLUDEHOME
   install:
	install -d $(INCLUDEHOME)
	install -m ugo+r *.h $(INCLUDEHOME)
   # Note that if I said "rm -rf $(INCLUDEHOME)/." instead, and
   # INCLUDEHOME were not set, then we'd do a "rm -rf /.", which is
   # bad.  This version gets an error if INCLUDEHOME is not set, which
   # is better. 
   uninstall:
	-rm -rf $(INCLUDEHOME)
else
   install:
	@echo "Can't install unless INCLUDEHOME is set."
	@exit 1
   uninstall:
	@echo "Can't uninstall unless INCLUDEHOME is set."
	@exit 1
endif
