Add LabelChildOption, LabelItemSpec, LabelResult types
[tfs.git] / Makefile
blob933277a7b2fe43c2a93b779c4f2f4b15480e008e
1 thisdir := .
3 SUBDIRS := build class tools data docs
5 net_2_0_SUBDIRS := $(SUBDIRS)
7 include build/config.make
8 include build/rules.make
10 all-recursive $(STD_TARGETS:=-recursive): platform-check profile-check
12 .PHONY: all-local $(STD_TARGETS:=-local)
13 all-local $(STD_TARGETS:=-local):
16 # fun specialty targets
18 PROFILES = default net_2_0
20 .PHONY: all-profiles $(STD_TARGETS:=-profiles)
21 all-profiles $(STD_TARGETS:=-profiles): %-profiles: profiles-do--%
24 profiles-do--%:
25 $(MAKE) $(PROFILES:%=profile-do--%--$*)
27 # The % below looks like profile-name--target-name
28 profile-do--%:
29 $(MAKE) PROFILE=$(subst --, ,$*)
31 # We don't want to run the tests in parallel. We want behaviour like -k.
32 profiles-do--run-test:
33 ret=:; $(foreach p,$(PROFILES), { $(MAKE) PROFILE=$(p) run-test || ret=false; }; ) $$ret
35 # Orchestrate the bootstrap here.
36 _boot_ = all clean install
37 $(_boot_:%=profile-do--net_2_0--%): profile-do--net_2_0--%: profile-do--net_2_0_bootstrap--%
38 $(_boot_:%=profile-do--net_2_0_bootstrap--%): profile-do--net_2_0_bootstrap--%: profile-do--default--%
39 $(_boot_:%=profile-do--default--%): profile-do--default--%: profile-do--net_1_1_bootstrap--%
40 $(_boot_:%=profile-do--net_1_1_bootstrap--%): profile-do--net_1_1_bootstrap--%: profile-do--basic--%
42 compiler-tests:
43 $(MAKE) TEST_SUBDIRS="tests errors" run-test-profiles
45 test-installed-compiler:
46 $(MAKE) TEST_SUBDIRS="tests errors" PROFILE=default TEST_RUNTIME=mono MCS=mcs run-test
47 $(MAKE) TEST_SUBDIRS="tests errors" PROFILE=net_2_0 TEST_RUNTIME=mono MCS=gmcs run-test
49 dist: all
50 dpkg-buildpackage -rfakeroot -uc -b
51 git-archive --format=tar --prefix=tf4mono-$(PACKAGE_VERSION)/ master . |gzip > ../tf4mono-$(PACKAGE_VERSION).tgz
52 cp docs/tf.html ../tf-$(PACKAGE_VERSION).html
54 distclean: clean
56 clean:
57 rm -rf debian/tmp debian/mono-teamfoundation-client debian/libmono-teamfoundation-cil
59 sample:
60 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
62 # if you want to run the unit tests against the MS versions of these
63 # assemblies you might find these targets useful
65 cp-mslibs:
66 cp /cygdrive/c/Program\ Files/Microsoft\ Visual\ Studio\ 8/Common7/IDE/PrivateAssemblies/Microsoft.TeamFoundation.* class/lib/net_2_0
68 sample-ondotnet:
69 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