#
# src/scripts/makefile - makefile for the webload shell & perl scripts
#
###############################################################################
DIR_ROOT = ../..#                # Set relative path to build root
include ../Make.common                 #include common makefile setups



CP_S := 					\
	choplog					\
	cleanup					\
	cputotals				\
	pagestats				\
	pagestats.pl				\
	retrain					\
	run.vmstat				\
	smack					\
	sumstats				\
	timechop				\
	utils.pl				\
	workload.pl	

# scripts get copied into the bin directory.
CP_T := $(CP_S:%=$(DIR_WL_BIN)/%)     # add export path to target names

.PHONY: all clean 

all:    $(CP_T)
	chmod ugo+rx $(CP_T)


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

clean:
	$(fancy_line)
	$(RM) *.o core tmp junk glop gorp

realclean: clean
	$(RM) $(CP_T)

######################### end of file ########################

