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

 1 tplarson 1.6 # $Header: /home/cvsuser/cvsroot/JSOC/proj/globalhs/Rules.mk,v 1.5 2013/04/29 22:34:33 arta Exp $
 2 tplarson 1.2 
 3 tplarson 1.1 sp 		:= $(sp).x
 4              dirstack_$(sp)	:= $(d)
 5              d		:= $(dir)
 6              
 7 tplarson 1.6 ifeq ($(GLOBALHSTAGOVERRIDE),)
 8                ifeq ($(MAKECMDGOALS),)
 9                  GLOBALHS_TAG := $(shell $(SRCDIR)/proj/globalhs/scripts/checkglobalhstags $(SRCDIR))
10                  TAGCHECK := $(findstring globalhs,$(GLOBALHS_TAG))
11                  ifeq ($(TAGCHECK),)
12                    $(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)")
13                  endif
14                else
15                  GLOBALHSMODLIST := jv2ts jretile jtsfiddle jtsslice jpkbgn jrebinsmooth undistortmdi mkylms
16                  GHSMODLIST_SOCK := $(GLOBALHSMODLIST:%=%_sock)
17                  GHSTARGETLIST   := all universe targets globalhs $(GLOBALHSMODLIST) $(GHSMODLIST_SOCK)
18                  GHSTARGETTEST   := $(filter $(MAKECMDGOALS),$(GHSTARGETLIST))
19                  ifneq ($(GHSTARGETTEST),)
20                    GLOBALHS_TAG := $(shell $(SRCDIR)/proj/globalhs/scripts/checkglobalhstags $(SRCDIR))
21                    TAGCHECK := $(findstring globalhs,$(GLOBALHS_TAG))
22                    ifeq ($(TAGCHECK),)
23                      $(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)")
24                    endif
25                  endif
26                endif
27              else
28 tplarson 1.6   GLOBALHS_TAG := $(GLOBALHSTAGOVERRIDE)
29 arta     1.4   TAGCHECK := $(findstring globalhs,$(GLOBALHS_TAG))
30                ifeq ($(TAGCHECK),)
31 tplarson 1.6     $(warning WARNING: specified tag override "$(GLOBALHSTAGOVERRIDE)" should contain the string "globalhs". a build of any target in proj/globalhs will fail.)
32 arta     1.4   endif
33 tplarson 1.2 endif
34              
35 tplarson 1.1 # Subdirectories. Directory-specific rules are optional here. The
36 tplarson 1.2 # order does NOT matter.
37              dir	:= $(d)/libs
38              -include		$(SRCDIR)/$(dir)/Rules.mk
39 tplarson 1.1 dir	:= $(d)/apps
40              -include		$(SRCDIR)/$(dir)/Rules.mk
41              
42              # Standard things
43              d		:= $(dirstack_$(sp))
44              sp		:= $(basename $(sp))

Karen Tian
Powered by
ViewCVS 0.9.4