Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: d07cf796a2
Fetching contributors…

Cannot retrieve contributors at this time

84 lines (65 sloc) 1.806 kb
VARIANTS = debug release
default:
@echo Options:
@echo " clean"
@echo " clean-["$(foreach v,$(VARIANTS),"$v")"]"
@echo " all"
@echo " ["$(foreach v,$(VARIANTS),"$v")"]"
@echo " rebuild-all"
@echo " rebuild-["$(foreach v,$(VARIANTS),"$v")"]"
@echo " depend-["$(foreach v,$(VARIANTS),"$v")"]"
@echo " run-["$(foreach v,$(VARIANTS),"$v")"]"
@echo " dist"
# Create a package
.PHONY: remise
remise:
@mkdir -p Build/Tp1 \
&& cp -pfr --parents Makefile CoreLib/Sources/* CoreLib/Makefile Application/Sources/* Application/Makefile Build/Tp1 \
&& (cd Build && tar czf tp1.tar.gz Tp1) \
&& mv -f Build/tp1.tar.gz . ; \
rm -rf Build
clean:
@make --no-print-directory noprint-clean
noprint-clean:
@cd CoreLib; make clean
@cd Application; make clean
all:
@make --no-print-directory noprint-all
noprint-all:
@cd CoreLib; make all
@cd Application; make all
rebuild-all:
@make --no-print-directory noprint-rebuild-all
noprint-rebuild-all:
@cd CoreLib; make rebuild-all
@cd Application; make rebuild-all
define compile_variant_template
.PHONY: clean-$(1)
clean-$(1):
@make --no-print-directory noprint-clean-$(1)
.PHONY: noprint-clean-$(1)
noprint-clean-$(1):
@cd CoreLib; make clean-$(1)
@cd Application; make clean-$(1)
.PHONY: $(1)
$(1):
@make --no-print-directory noprint-$(1)
.PHONY: noprint-$(1)
noprint-$(1):
@cd CoreLib; make $(1)
@cd Application; make $(1)
.PHONY: rebuild-$(1)
rebuild-$(1):
@make --no-print-directory noprint-rebuild-$(1)
.PHONY: noprint-rebuild-$(1)
noprint-rebuild-$(1):
@cd CoreLib; make rebuild-$(1)
@cd Application; make rebuild-$(1)
.PHONY: run-$(1)
run-$(1):
@./Application/Binaries/$(1)/Application
endef
# Generate all compilation targets
$(foreach v,$(VARIANTS), \
$(eval $(call compile_variant_template,$(v))) \
)
Jump to Line
Something went wrong with that request. Please try again.