install_examples:
	mkdir -p $(INSTALLPATH)/examples;
	@rm -f $(INSTALLPATH)/examples/Makefile.conf;
	@echo SYSTEMC=$(SYSTEMC) >$(INSTALLPATH)/examples/Makefile.conf;
	@echo SCV=$(SCV) >>$(INSTALLPATH)/examples/Makefile.conf;
	@echo TLM2=$(TLM2) >>$(INSTALLPATH)/examples/Makefile.conf;
	@echo TARGET_ARCH=$(TARGET_ARCH) >>$(INSTALLPATH)/examples/Makefile.conf;
	@echo OCPIP=$(INSTALLPATH) >>$(INSTALLPATH)/examples/Makefile.conf;
	@echo MONMKFILE=$$\(wildcard $(INSTALLPATH)/examples/Makefile.mon.conf\) >>$(INSTALLPATH)/examples/Makefile.conf;
	@echo ifeq \($$\(MONMKFILE\), $(INSTALLPATH)/examples/Makefile.mon.conf\) >>$(INSTALLPATH)/examples/Makefile.conf;
	@echo include $(INSTALLPATH)/examples/Makefile.mon.conf >>$(INSTALLPATH)/examples/Makefile.conf;
	@echo endif >>$(INSTALLPATH)/examples/Makefile.conf;
	cp -rf ./common $(INSTALLPATH)/examples;
	cp -rf ./ocp_tl1 $(INSTALLPATH)/examples;
	cp -rf ./ocp_tl1_ambd_profile $(INSTALLPATH)/examples;
	cp -rf ./ocp_tl1_h_bus_profile $(INSTALLPATH)/examples;
	cp -rf ./ocp_tl1_imprecise_burst_profile $(INSTALLPATH)/examples;
	cp -rf ./ocp_tl1_imprecise_burst_profile_with_req_info $(INSTALLPATH)/examples;
	cp -rf ./ocp_tl1_reg_access_profile $(INSTALLPATH)/examples;
	cp -rf ./ocp_tl1_simple $(INSTALLPATH)/examples;
	cp -rf ./ocp_tl1_timing $(INSTALLPATH)/examples;
	cp -rf ./ocp_tl1_x_bus_profile $(INSTALLPATH)/examples;
	cp -rf ./ocp_tl2_simple $(INSTALLPATH)/examples;
	cp -rf ./ocp_tl2_using_word_count $(INSTALLPATH)/examples;
	cp -rf ./ocp_tl2_timing_annotation $(INSTALLPATH)/examples;
	cp -rf ./ocp_tl3_simple $(INSTALLPATH)/examples;
	cp -rf ./ocp_tl3_bus $(INSTALLPATH)/examples;
	cp ./Makefile.generic $(INSTALLPATH)/examples; 

uninstall_examples:
	rm -rf $(INSTALLPATH)/examples/ocp_tl1_timing;
	rm -rf $(INSTALLPATH)/examples/common;
	rm -rf $(INSTALLPATH)/examples/ocp_tl1;
	rm -rf $(INSTALLPATH)/examples/ocp_tl1_ambd_profile;
	rm -rf $(INSTALLPATH)/examples/ocp_tl1_h_bus_profile;
	rm -rf $(INSTALLPATH)/examples/ocp_tl1_imprecise_burst_profile;
	rm -rf $(INSTALLPATH)/examples/ocp_tl1_imprecise_burst_profile_with_req_info;
	rm -rf $(INSTALLPATH)/examples/ocp_tl1_reg_access_profile;
	rm -rf $(INSTALLPATH)/examples/ocp_tl1_simple;
	rm -rf $(INSTALLPATH)/examples/ocp_tl1_timing;
	rm -rf $(INSTALLPATH)/examples/ocp_tl1_x_bus_profile;
	rm -rf $(INSTALLPATH)/examples/ocp_tl2_simple
	rm -rf $(INSTALLPATH)/examples/ocp_tl2_using_word_count
	rm -rf $(INSTALLPATH)/examples/ocp_tl2_timing_annotation
	rm -rf $(INSTALLPATH)/examples/ocp_tl3_simple
	rm -rf $(INSTALLPATH)/examples/ocp_tl3_bus
	rm -f $(INSTALLPATH)/examples/Makefile.conf;
	rm -f $(INSTALLPATH)/examples/Makefile.generic;
	rm -f $(INSTALLPATH)/examples/Makefile.mon.conf;
	rmdir $(INSTALLPATH)/examples;
