Revision 1408 trunk/contrib/ad2csv/GNUmakefile

GNUmakefile (revision 1408)
1
ifneq (,$(findstring sh.exe,$(SHELL)))
2
  SHELL=cmd
3
endif
4

  
5
ifeq ($(SHELL),cmd)
6
..\..\build\dist\contrib\bin\ad2csv.exe: ad2csv.cpp main.cpp
7
	..\..\admb $(OPTION) $^
8
	copy ad2csv.exe $@
9
else
1 10
../../build/dist/contrib/bin/ad2csv: ad2csv.cpp main.cpp
2 11
	../../admb $(OPTION) $^
3
ifeq ($(SHELL),sh.exe)
4
	copy ad2csv $@
5
else
6 12
	cp ad2csv $@
7 13
endif
8 14

  
9 15
clean:
16
ifeq ($(SHELL),cmd)
17
	del ad2csv ad2csv.exe main.obj ad2csv.obj
18
	del main.o ad2csv.o
19
else
10 20
	rm -f ad2csv ad2csv.exe main.obj ad2csv.obj
11 21
	rm -f main.o ad2csv.o
22
endif

Also available in: Unified diff