################################################################################
# Automatically-generated file. Do not edit!
################################################################################

Out=$(HOME)/STAR
EXECOut=$(HOME)/bin

-include ../makefile.init

RM := rm -rf

# All of the sources participating in the build are defined here
-include sources.mk
-include subdir.mk
-include objects.mk

ifneq ($(MAKECMDGOALS),clean)
ifneq ($(strip $(C_DEPS)),)
-include $(C_DEPS)
endif
ifneq ($(strip $(CXX_DEPS)),)
-include $(CXX_DEPS)
endif
ifneq ($(strip $(CPP_DEPS)),)
-include $(CPP_DEPS)
endif
ifneq ($(strip $(CC_DEPS)),)
-include $(CC_DEPS)
endif
ifneq ($(strip $(C_UPPER_DEPS)),)
-include $(C_UPPER_DEPS)
endif
ifneq ($(strip $(C++_DEPS)),)
-include $(C++_DEPS)
endif
endif

-include ../makefile.defs

# Add inputs and outputs from these tool invocations to the build variables 

# All Target
all: installdirs STAR publish

installdirs :
	$(RM) $(Out)
	mkdir -p $(Out)
	mkdir -p $(EXECOut)
	cp graph $(Out)
	cp graphPNG $(Out)
	cp PlotEnergy.sh $(Out)
	cp policy.awk $(Out)
	cp datacat $(Out)
	cp datacat_large $(Out)
	cp -r STAR_projects $(Out)
	cp -r eg $(Out)
	cp -r policies $(Out)
	cp -r strategies $(Out)
	cp help.txt $(Out)

# Tool invocations
STAR: $(OBJS) $(USER_OBJS)
	@echo 'Building target: $@'
	@echo 'Invoking: GCC C++ Linker'
	- g++ -o "$(EXECOut)/STAR" $(OBJS) $(USER_OBJS) $(LIBS)
	@echo 'Finished building target: $@'
	@echo ' '
	-$(RM) $(C_DEPS)$(CXX_DEPS)$(CPP_DEPS)$(OBJS)$(CC_DEPS)$(EXECUTABLES)$(C_UPPER_DEPS)$(C++_DEPS)

# Other Targets
clean:
	- $(RM) -r $(C_DEPS)$(CXX_DEPS)$(CPP_DEPS)$(OBJS)$(CC_DEPS)$(EXECUTABLES)$(C_UPPER_DEPS)$(C++_DEPS)$(Out)$(EXECOut)
	- @echo ' '

publish:
	chmod -Rf 755 $(Out)

.PHONY: all clean dependents
.SECONDARY:

-include ../makefile.targets
