#
# FILE:
# src/Makefile - master makefile for the webload tool.
#
###############################################################################
DIR_ROOT = ..#                         # Set relative path to build root
include Make.common                    #include common makefile setups


CP_S := 					\
#        README

CP_T := $(CP_S:%=$(DIR_WL_MAIN)/%)     # add export path to target names



.PHONY: all clean docs examples realclean scripts webbot

all:    $(CP_T) docs examples scripts webbot 

docs:     ;$(MAKE) -C docs

examples: ;$(MAKE) -C examples

scripts:  ;$(MAKE) -C scripts

webbot:   ;$(MAKE) -C webbot


clean:
	rm -f core tmp glop junk gorp 
	cd docs;     $(MAKE) clean
	cd examples; $(MAKE) clean
	cd scripts;  $(MAKE) clean
	cd webbot;   $(MAKE) clean

realclean: 
	rm -f core tmp glop junk gorp *.o *.a
	rm -f $(CP_T)
	cd docs;     $(MAKE) realclean
	cd examples; $(MAKE) realclean
	cd scripts;  $(MAKE) realclean
	cd webbot;   $(MAKE) realclean


# Hmm ... $< seems broken, use $(@F) instead
$(CP_T): $(CP_S)
	$(fancy_line)
	cp -f $(@F) $(DIR_WL_MAIN)

