Revision 1438 trunk/examples/GNUmakefile

GNUmakefile (revision 1438)
1
.ONESHELL:
2
ifeq (sh.exe,$(findstring sh.exe,$(SHELL)))
3
SHELL = cmd
4
ADMB_HOME=$(shell cmd /C cd .. && cd)
5
else
1 6
ADMB_HOME=$(shell cd .. && pwd)
2

  
7
endif
3 8
ifeq ($(OS),Windows_NT)
4 9
EXT=.sh
5 10
endif
......
181 186
	pushd admb-re/weights && $(ADMB_HOME)/admb$(EXT) -r$(OPTIONS) $@ && $(PROG) ./$@
182 187
binomial_w2:
183 188
	pushd admb-re/weights && $(ADMB_HOME)/admb$(EXT) -r$(OPTIONS) $@ && $(PROG) ./$@ -nohess
189

  
190
copy:
191
ifeq ($(SHELL),cmd)
192
	if not exist ..\build\dist\examples md ..\build\dist\examples
193
	xcopy ..\examples ..\build\dist\examples /S /Y /D
194
else
195
	cp -R ../examples ../build/dist
196
endif

Also available in: Unified diff