Part of Bug 290057 - Turn-on mdimporter by default in build system [r=bienvenu,sr=Standard8]
authorDavid Humphrey <david.humphrey@senecac.on.ca>
Mon, 08 Dec 2008 14:55:35 +0000
changeset 1373 73b79d33f8842159186b17ee1f6ee91c70d9f9ce
parent 1372 2af9fdc775005f81b915cb580d13664a45efd228
child 1374 cf4d93253ff6663d141dc34f060be464fcca3490
push idunknown
push userunknown
push dateunknown
reviewersbienvenu, Standard8
bugs290057
Part of Bug 290057 - Turn-on mdimporter by default in build system [r=bienvenu,sr=Standard8]
mail/components/search/mdimporter/Makefile.in
--- a/mail/components/search/mdimporter/Makefile.in
+++ b/mail/components/search/mdimporter/Makefile.in
@@ -48,37 +48,31 @@ MODULE      = mdimporter
 ifeq (,$(findstring pbxbuild,$(PBBUILD)))
     # pbbuild or xcodebuild indicates Xcode; the Xcode project contains
     # native targets needed for proper SDK builds.
     PROJECT=TBSpotlight.xcodeproj
     PROJECT_ARG=-project $(PROJECT)
     PBBUILD_ARG=$(PBBUILD_SETTINGS)
 endif
 
-TARGET		= "Thunderbird"
-
 BUILDSTYLE = Release
 
 unexport CC CXX
 
 # for objdir builds, copy the project, and symlink the sources
 ABS_topsrcdir   := $(shell cd $(topsrcdir); pwd)
 ifneq ($(ABS_topsrcdir),$(MOZ_BUILD_ROOT))
 export::
 	rsync -a --exclude .DS_Store --exclude "CVS/" $(srcdir)/$(PROJECT) .
 	ln -fs $(srcdir)/English.lproj
 	ln -fs $(srcdir)/GetMetadataForFile.c
 	ln -fs $(srcdir)/main.c
 	ln -fs $(srcdir)/schema.xml
 	ln -fs $(srcdir)/Info*.plist .
 endif
 
-libs install:: install-mdimporter
-
-install-mdimporter: build-mdimporter
-	$(INSTALL) "$(XCODE_PRODUCT_DIR)/Thunderbird.mdimporter" $(DIST)/bin/Thunderbird.app/Contents/Library/Spotlight
-
-build-mdimporter:
-	$(PBBUILD) $(PROJECT_ARG) -target $(TARGET) -configuration Release $(PBBUILD_ARG)
-#	echo -n NSPLMOSS > "$(XCODE_PRODUCT_DIR)/Default Plugin.plugin/Contents/PkgInfo"
+libs::
+	$(PBBUILD) $(PROJECT_ARG) -target Thunderbird -configuration Release $(PBBUILD_ARG)
+	mkdir -p $(DIST)/package
+	$(INSTALL) "$(XCODE_PRODUCT_DIR)/Thunderbird.mdimporter" $(DIST)/package
 
 clean clobber distclean::
 	rm -rf build