# SDSS Science Archive Package Makefile:	
#
#	PACKAGE:	SpatialIndex
#
# Note: SDSS Science Archive modules assume full responsibility for
#	all files that they generate. Thus a make clean in a module
#	also removes any files installed into package directories.
#	If this is not the appropriate action, use the tidy target.

# --- Macros -----------------------------------------------------------------

INSTALL_DIR   = $(SPATIALINDEX_INSTALL_DIR)/bin

# --- Targets ----------------------------------------------------------------

default: default_message

# Naive attempt to force use of sxmake.  See 'default' target above.

default_message	:
	@ echo ############################################################
	@ echo
	@ echo ERROR: Invalid make request.
	@ echo
	@ echo Please invoke this makefile using sxmake from sdsstools
	@ echo
	@ echo ############################################################
	@ echo

install :
	@if [ "$(INSTALL_DIR)" = "" ]; then \
		echo You have not specified a destination directory >&2; \
		exit 1; \
	fi
	@for i in *; do   \
		if [ -f $$i ]; then \
			cp $$i $(INSTALL_DIR) ; \
		fi;\
	done;


##############################################################################
#
# Include file dependencies.  All lines below START_DEPEND are
# generated by make_make.  Do not edit them!
#
#START_DEPEND
