version 1.5, 2013/04/29 22:34:33
|
version 1.6, 2013/04/30 06:49:36
|
|
|
dirstack_$(sp) := $(d) | dirstack_$(sp) := $(d) |
d := $(dir) | d := $(dir) |
| |
doit := |
ifeq ($(GLOBALHSTAGOVERRIDE),) |
ifeq ($(findstring globalhs,$(MAKECMDGOALS)),globalhs) |
ifeq ($(MAKECMDGOALS),) |
doit := yup |
GLOBALHS_TAG := $(shell $(SRCDIR)/proj/globalhs/scripts/checkglobalhstags $(SRCDIR)) |
else ifeq ($(findstring all,$(MAKECMDGOALS)),) |
TAGCHECK := $(findstring globalhs,$(GLOBALHS_TAG)) |
doit := yup |
ifeq ($(TAGCHECK),) |
else ifeq ($(findstring jretile,$(MAKECMDGOALS)),jretile) |
$(warning WARNING: proj/globalhs is not tagged consistently. a build of any target in proj/globalhs will fail. output of script checkglobalhstags is "$(GLOBALHS_TAG)") |
doit := yup |
|
else ifeq ($(findstring jrebinsmooth,$(MAKECMDGOALS)),jrebinsmooth) |
|
doit := yup |
|
else ifeq ($(findstring undistortmdi,$(MAKECMDGOALS)),undistortmdi) |
|
doit := yup |
|
else ifeq ($(findstring jtsslice,$(MAKECMDGOALS)),jtsslice) |
|
doit := yup |
|
else ifeq ($(findstring mkylms,$(MAKECMDGOALS)),mkylms) |
|
doit := yup |
|
else ifeq ($(findstring jv2ts,$(MAKECMDGOALS)),jv2ts) |
|
doit := yup |
|
else ifeq ($(findstring jtsfiddle,$(MAKECMDGOALS)),jtsfiddle) |
|
doit := yup |
|
else ifeq ($(findstring jpkbgn,$(MAKECMDGOALS)),jpkbgn) |
|
doit := yup |
|
else ifeq ($(findstring jv2ts_sock,$(MAKECMDGOALS)),jv2ts_sock) |
|
doit := yup |
|
else ifeq ($(findstring jretile_sock,$(MAKECMDGOALS)),jretile_sock) |
|
doit := yup |
|
else ifeq ($(findstring jtsfiddle_sock,$(MAKECMDGOALS)),jtsfiddle_sock) |
|
doit := yup |
|
else ifeq ($(findstring jtsslice_sock,$(MAKECMDGOALS)),jtsslice_sock) |
|
doit := yup |
|
else ifeq ($(findstring jpkbgn_sock,$(MAKECMDGOALS)),jpkbgn_sock) |
|
doit := yup |
|
else ifeq ($(findstring jrebinsmooth_sock,$(MAKECMDGOALS)),jrebinsmooth_sock) |
|
doit := yup |
|
else ifeq ($(findstring undistortmdi_sock,$(MAKECMDGOALS)),undistortmdi_sock) |
|
doit := yup |
|
else ifeq ($(findstring mkylms_sock,$(MAKECMDGOALS)),mkylms_sock) |
|
doit := yup |
|
endif | endif |
|
else |
ifeq ($(doit),yup) |
GLOBALHSMODLIST := jv2ts jretile jtsfiddle jtsslice jpkbgn jrebinsmooth undistortmdi mkylms |
GLOBALHS_TAG := $(shell $(SRCDIR)/proj/globalhs/scripts/checkglobalhstags $(SRCDIR) $(GLOBALHSTAGOVERRIDE)) |
GHSMODLIST_SOCK := $(GLOBALHSMODLIST:%=%_sock) |
|
GHSTARGETLIST := all universe targets globalhs $(GLOBALHSMODLIST) $(GHSMODLIST_SOCK) |
|
GHSTARGETTEST := $(filter $(MAKECMDGOALS),$(GHSTARGETLIST)) |
|
ifneq ($(GHSTARGETTEST),) |
|
GLOBALHS_TAG := $(shell $(SRCDIR)/proj/globalhs/scripts/checkglobalhstags $(SRCDIR)) |
TAGCHECK := $(findstring globalhs,$(GLOBALHS_TAG)) | TAGCHECK := $(findstring globalhs,$(GLOBALHS_TAG)) |
ifeq ($(TAGCHECK),) | ifeq ($(TAGCHECK),) |
$(warning WARNING: proj/globalhs is not tagged consistently. a build of any target in proj/globalhs will fail. output of script checkglobalhstags is "$(GLOBALHS_TAG)") | $(warning WARNING: proj/globalhs is not tagged consistently. a build of any target in proj/globalhs will fail. output of script checkglobalhstags is "$(GLOBALHS_TAG)") |
endif | endif |
endif | endif |
|
endif |
|
else |
|
GLOBALHS_TAG := $(GLOBALHSTAGOVERRIDE) |
|
TAGCHECK := $(findstring globalhs,$(GLOBALHS_TAG)) |
|
ifeq ($(TAGCHECK),) |
|
$(warning WARNING: specified tag override "$(GLOBALHSTAGOVERRIDE)" should contain the string "globalhs". a build of any target in proj/globalhs will fail.) |
|
endif |
|
endif |
| |
# Subdirectories. Directory-specific rules are optional here. The | # Subdirectories. Directory-specific rules are optional here. The |
# order does NOT matter. | # order does NOT matter. |