dont connect to server till we need to
[tfs.git] / Makefile
blob292fbd3fe9a6e728d8430b9bce58f01771909e98
1 thisdir := .
3 SUBDIRS := build class tools data
5 net_2_0_SUBDIRS := $(SUBDIRS)
7 include build/config.make
8 include build/rules.make
10 ifeq ($(HAVE_DOC_TOOLS),yes)
11 PROFILE_SUBDIRS += docs
12 endif
14 all-recursive $(STD_TARGETS:=-recursive): platform-check profile-check
16 .PHONY: all-local $(STD_TARGETS:=-local)
17 all-local $(STD_TARGETS:=-local):
20 # fun specialty targets
22 PROFILES = default net_2_0
24 .PHONY: all-profiles $(STD_TARGETS:=-profiles)
25 all-profiles $(STD_TARGETS:=-profiles): %-profiles: profiles-do--%
28 profiles-do--%:
29 $(MAKE) $(PROFILES:%=profile-do--%--$*)
31 # The % below looks like profile-name--target-name
32 profile-do--%:
33 $(MAKE) PROFILE=$(subst --, ,$*)
35 # We don't want to run the tests in parallel. We want behaviour like -k.
36 profiles-do--run-test:
37 ret=:; $(foreach p,$(PROFILES), { $(MAKE) PROFILE=$(p) run-test || ret=false; }; ) $$ret
39 # Orchestrate the bootstrap here.
40 _boot_ = all clean install
41 $(_boot_:%=profile-do--net_2_0--%): profile-do--net_2_0--%: profile-do--net_2_0_bootstrap--%
42 $(_boot_:%=profile-do--net_2_0_bootstrap--%): profile-do--net_2_0_bootstrap--%: profile-do--default--%
43 $(_boot_:%=profile-do--default--%): profile-do--default--%: profile-do--net_1_1_bootstrap--%
44 $(_boot_:%=profile-do--net_1_1_bootstrap--%): profile-do--net_1_1_bootstrap--%: profile-do--basic--%
46 compiler-tests:
47 $(MAKE) TEST_SUBDIRS="tests errors" run-test-profiles
49 test-installed-compiler:
50 $(MAKE) TEST_SUBDIRS="tests errors" PROFILE=default TEST_RUNTIME=mono MCS=mcs run-test
51 $(MAKE) TEST_SUBDIRS="tests errors" PROFILE=net_2_0 TEST_RUNTIME=mono MCS=gmcs run-test
53 dist: all
54 dpkg-buildpackage -rfakeroot -uc -b
55 git-archive --format=tar --prefix=tf4mono-$(PACKAGE_VERSION)/ master . |gzip > ../tf4mono-$(PACKAGE_VERSION).tgz
56 cp docs/tf.html ../tf-$(PACKAGE_VERSION).html
58 distclean: clean
60 clean:
61 rm -rf debian/tmp debian/mono-teamfoundation-client debian/libmono-teamfoundation-cil
63 sample:
64 gmcs sample.cs -r:Microsoft.TeamFoundation.dll -r:Microsoft.TeamFoundation.Client.dll -r:Microsoft.TeamFoundation.VersionControl.Client.dll -r:Microsoft.TeamFoundation.VersionControl.Common.dll -r:Microsoft.TeamFoundation.Common.dll
66 # if you want to run the unit tests against the MS versions of these
67 # assemblies you might find these targets useful
69 cp-mslibs:
70 cp /cygdrive/c/Program\ Files/Microsoft\ Visual\ Studio\ 8/Common7/IDE/PrivateAssemblies/Microsoft.TeamFoundation.* class/lib/net_2_0
72 sample-ondotnet:
73 csc sample.cs -r:Microsoft.TeamFoundation.dll -r:Microsoft.TeamFoundation.Client.dll -r:Microsoft.TeamFoundation.VersionControl.Client.dll -r:Microsoft.TeamFoundation.VersionControl.Common.dll -r:Microsoft.TeamFoundation.Common.dll