Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Makefile « MonoDevelop.MeeGo « extras - github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f2adbe2271f439867e04f309f5a0958626821b41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
include config.make
installdir = "$(prefix)/lib/monodevelop/AddIns/MonoDevelop.MeeGo"
conf=Debug
SLN=MonoDevelop.MeeGo.sln


ISLOCAL := $(wildcard "../local-config/monodevelop.pc")
ifeq ($(strip $(ISLOCAL)),)
	LOCAL_MDBUILD=../../main/build
	MDTOOL=\
		PKG_CONFIG_PATH="../../local-config:${PKG_CONFIG_PATH}" \
		MONODEVELOP_LOCALE_PATH="${LOCAL_MDBUILD}/locale" \
		MONO_ADDINS_REGISTRY="${LOCAL_MDBUILD}/bin" \
		mono --debug "${LOCAL_MDBUILD}/bin/mdtool.exe"
else
	MDTOOL=mdtool
endif

all: update-reg
	$(MDTOOL) build -c:$(conf) $(SLN)

clean:
	rm -rf build/*

# this breaks if the local MD has been cleaned
#clean: update-reg	
#	$(MDTOOL) build -t:Clean -c:$(conf) $(SLN)

install: all
	mkdir -p  $(installdir)
	cp -r ./build/* $(installdir)

uninstall:
	rm -rf "$(installdir)"

ifeq ($(strip $(ISLOCAL)),)
update-reg:
	$(MDTOOL) setup reg-update
else
	update-reg:
endif