Defalt to using sh instead of ksh in makefiles, but allow override by user.

Change-Id: I5c23fde4960bf31a0fd5c0ce027e0dabc8377123
This commit is contained in:
Scott Daniels 2013-09-18 10:56:17 -04:00
parent 4451cff7bc
commit ae30131299
2 changed files with 10 additions and 2 deletions

View File

@ -1,6 +1,13 @@
# global things needed by all make files -- mostly meta rules
SHELL = ksh
# allow user to override with better shell when desired.
# unfortunately (g)make overrides SHELL rather than importing it; pull from MK_SHELL if set
ifneq ($(MK_SHELL),)
SHELL := $(MK_SHELL)
else
SHELL := sh
endif
# allows the use of ../ in include statements
env = openout_any=a openin_any=a
@ -14,4 +21,3 @@ env = openout_any=a openin_any=a
# xfig used to produce/maintain figures. this converts to eps
%.eps: %.fig
fig2dev -L eps <$< >$@

View File

@ -1,6 +1,8 @@
# simple makefile to build all doc from the subdirectories below and to
# pull the final pdf files to this directory.
include global.make
sub_dirs = ic_user
# buld and prompte the final pdf to this directory