SHELL = /bin/sh
#

PRODDIR=$(INVENTORY_INSTALL_DIR)

all:
	cc -o platelife platelife.c -lm
	mv platelife ../bin

install :
	@if [ "$(PRODDIR)" = "" ]; then \
		echo You have not specified a destination directory >&2; \
		exit 1; \
	fi 
	@rm -rf $(PRODDIR)/src
	@mkdir  $(PRODDIR)/src
	@cp Makefile $(PRODDIR)/src
	@cp *.c $(PRODDIR)/src

clean :
	rm -f *.bak *~ *.o *.tkbak
