(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.4, Mon Apr 29 21:30:57 2013 UTC (10 years, 1 month ago) by arta
Branch: MAIN
Changes since 1.3: +44 -5 lines
Dont run the checkglobalhstags script, unless were building a target that needs that script to run.

# $Header: /home/cvsuser/cvsroot/JSOC/proj/globalhs/Rules.mk,v 1.4 2013/04/29 22:30:57 arta Exp $

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

doit		:=
ifeq ($(findstring globalhs,$(MAKECMDGOALS)),globalhs)
  doit	:= yup
else ifeq ($(findstring jretile,$(MAKECMDGOALS)),jretile)
  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

ifeq ($(doit),yup)
  GLOBALHS_TAG := $(shell $(SRCDIR)/proj/globalhs/scripts/checkglobalhstags $(SRCDIR) $(GLOBALHSTAGOVERRIDE))
  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

# 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