(file) Return to Rules.mk CVS log (file) (dir) Up to [Development] / JSOC / proj / globalhs

File: [Development] / JSOC / proj / globalhs / Rules.mk (download)
Revision: 1.6, Tue Apr 30 05:49:36 2013 UTC (10 years, 1 month ago) by tplarson
Branch: MAIN
Changes since 1.5: +24 -43 lines
fixed conditionals

# $Header: /home/cvsuser/cvsroot/JSOC/proj/globalhs/Rules.mk,v 1.6 2013/04/30 06:49:36 tplarson Exp $

sp 		:= $(sp).x
dirstack_$(sp)	:= $(d)
d		:= $(dir)

ifeq ($(GLOBALHSTAGOVERRIDE),)
  ifeq ($(MAKECMDGOALS),)
    GLOBALHS_TAG := $(shell $(SRCDIR)/proj/globalhs/scripts/checkglobalhstags $(SRCDIR))
    TAGCHECK := $(findstring globalhs,$(GLOBALHS_TAG))
    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)")
    endif
  else
    GLOBALHSMODLIST := jv2ts jretile jtsfiddle jtsslice jpkbgn jrebinsmooth undistortmdi mkylms
    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))
      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)")
      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
# order does NOT matter.
dir	:= $(d)/libs
-include		$(SRCDIR)/$(dir)/Rules.mk
dir	:= $(d)/apps
-include		$(SRCDIR)/$(dir)/Rules.mk

# Standard things
d		:= $(dirstack_$(sp))
sp		:= $(basename $(sp))

Karen Tian
Powered by
ViewCVS 0.9.4