##
## makefile for hsc example project
##

#
# NOTE: this makefile leads to problems with the 'make'
# that came with the GCC distribution for AmigaOS.
#
# set the destination path to anything without a ":" to
# fix this or use some other 'make'
#

hsc    = /hsc					# command used to envoke hsc
destdir= ram:example
dest   = $(destdir)/				# project destination dir
opts   = CheckUri DestDir=$(dest) verbose	# options for hsc

#
# amiga symbols
#
mkdir = makedir                          # command used to create a new dir
copy  = copy                             # command used to copy a file
del   = delete ALL                       # command used to remove a directory

#
# unix symbols
#
#mkdir = mkdir
#copy  = cp
#del   = rm -r

all : $(dest)stupid.html $(dest)hugo/hugo.html $(dest)main.html 
	# do nufin

$(dest)main.html : main.hsc macro.hsc
	$(hsc) main.hsc $(opts)

$(dest)stupid.html : stupid.hsc macro.hsc
	$(hsc) stupid.hsc $(opts)

$(dest)hugo/hugo.html : hugo/hugo.hsc macro.hsc
	$(hsc) hugo/hugo.hsc $(opts)

picture : hugo/hugo.gif
	$(copy) hugo/hugo.gif $(dest)hugo
destdir : 
	$(mkdir) $(destdir)
	$(mkdir) $(dest)hugo	

# remove the whole example 
clean  : 
	$(del) $(destdir)
