diff options
author | prigaux <[email protected]> | 2007-03-06 21:15:55 +0000 |
---|---|---|
committer | prigaux <[email protected]> | 2007-03-06 21:15:55 +0000 |
commit | c4a642b4648d486777af91ccc2894355df447089 (patch) | |
tree | 4ff9eee3e39a530cb649d9db43456e0ab3d712a3 /Makefile | |
parent | ff5ed5d2a2009504f1da3cf348689a59a82b27f1 (diff) |
Merge the 5.1 branch into the trunk.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@422 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 53 |
1 files changed, 34 insertions, 19 deletions
@@ -1,12 +1,19 @@ +include Makefile.config + SYSTEM = $(shell uname -s) # Special case for Mac OS X: everything is handled from the Xcode project ifeq ($(SYSTEM),Darwin) -all: clean app release +all: clean app + +dev: clean internal app: - (./DownloadMacOsXContribBinaries.sh ; cd macosx ; xcodebuild -alltargets -configuration UB build | sed '/^$$/d' ; cd .. ; ./macosx/localize.sh MediaFork.app) + (./DownloadMacOsXContribBinaries.sh ; cd macosx ; xcodebuild -alltargets -configuration UB OTHER_CFLAGS_QUOTED_1="-DHB_VERSION=\\\"$(HB_VERSION)\\\" -DHB_BUILD=$(HB_BUILD) " build | sed '/^$$/d' ; cd .. ; ./macosx/localize.sh HandBrake.app $(HB_VERSION) $(HB_BUILD) UB ) + +internal: + (./DownloadMacOsXContribBinaries.sh ; cd macosx ; xcodebuild -alltargets -configuration Development OTHER_CFLAGS_QUOTED_1="-DHB_VERSION=\\\"$(HB_VERSION)\\\" -DHB_BUILD=$(HB_BUILD) " build | sed '/^$$/d' ; cd .. ; ./macosx/localize.sh HandBrake.app $(HB_VERSION) $(HB_BUILD) DEV ) ; rm -rf plugins ; mkdir plugins ; cp contrib/lib/libquicktime/* plugins clean: (cd macosx ; xcodebuild -alltargets -configuration UB clean | sed '/^$$/d' ) @@ -15,50 +22,58 @@ mrproper: (rm -rf contrib/*tar.gz contrib/include contrib/lib contrib/DarwinContribVersion.txt ; cd macosx ; xcodebuild -alltargets -configuration UB clean | sed '/^$$/d' ) release: - (rm -rf MediaFork MediaFork.dmg ; mkdir -p MediaFork/api MediaFork/doc; cp test/BUILDSHARED AUTHORS BUILD COPYING CREDITS NEWS THANKS TRANSLATIONS MediaFork/doc ; cp -rp MediaFork.app MediaFork ; cp -rp libmediafork/libmediafork.dylib MediaFork/api ; cp -rp libmediafork/mediafork.h libmediafork/common.h libmediafork/ports.h MediaFork/api ; cp -rp MediaForkCLI MediaFork ; hdiutil create -srcfolder MediaFork -format UDBZ MediaFork.dmg ; rm -rf MediaFork ) + (rm -rf Handbrake Handbrake.dmg ; mkdir -p Handbrake/api Handbrake/doc; cp test/BUILDSHARED AUTHORS BUILD COPYING CREDITS NEWS THANKS TRANSLATIONS Handbrake/doc ; cp -rp HandBrake.app Handbrake ; cp -rp libhb/libhb.dylib Handbrake/api ; cp -rp libhb/hb.h libhb/common.h libhb/ports.h Handbrake/api ; cp -rp HandbrakeCLI Handbrake ; hdiutil create -srcfolder Handbrake -format UDZO Handbrake.dmg ; rm -rf Handbrake ) +ifeq ($(SNAP), 1) + ( mv Handbrake.dmg MediaFork-$(HB_VERSION)-MacOS_UB.dmg ) +endif + +releaseint: + (rm -rf Handbrake Handbrake.dmg ; mkdir -p Handbrake/api Handbrake/doc; cp test/BUILDSHARED AUTHORS BUILD COPYING CREDITS NEWS THANKS TRANSLATIONS Handbrake/doc ; cp -rp HandBrake.app Handbrake ; cp -rp libhb/libhb.dylib Handbrake/api ; cp -rp libhb/hb.h libhb/common.h libhb/ports.h Handbrake/api ; cp -rp HandbrakeCLI Handbrake ; cd HandBrake ; mkdir plugins ; cd plugins ; ln ../HandBrake.app/Contents/Resources/plugins/lqt_audiocodec.so ; ln ../HandBrake.app/Contents/Resources/plugins/lqt_faac.so ; ln ../HandBrake.app/Contents/Resources/plugins/lqt_ffmpeg.so; ln ../HandBrake.app/Contents/Resources/plugins/lqt_lame.so; ln ../HandBrake.app/Contents/Resources/plugins/lqt_rtjpeg.so ; ln ../HandBrake.app/Contents/Resources/plugins/lqt_videocodec.so ; ln ../HandBrake.app/Contents/Resources/plugins/lqt_x264.so; cd ../.. ; hdiutil create -srcfolder Handbrake -format UDZO Handbrake.dmg ; rm -rf Handbrake ) endif ifeq ($(SYSTEM),Linux) -all: contrib/lib libmediafork/libmediafork.a MediaForkCLI +all: contrib/.contrib libhb/libhb.a HandBrakeCLI + (rm -rf HandBrake HandBrake*.tar.gz ; mkdir -p HandBrake/api HandBrake/doc; cp test/BUILDSHARED AUTHORS BUILD COPYING CREDITS NEWS THANKS TRANSLATIONS HandBrake/doc ; cp -rp libhb/libhb.so HandBrake/api ; cp -rp libhb/hb.h libhb/common.h libhb/ports.h HandBrake/api ; cp -rp HandBrakeCLI HandBrake ; tar zcvf HandBrake-$(HB_VERSION)_i386.tar.gz HandBrake ; rm -rf HandBrake ) + -contrib/lib: - (./configure ; cd contrib ; cp -f ../config.jam . ; jam ; cd ..) +contrib/.contrib: + @$(MAKE) --no-print-directory -C contrib all -libmediafork/libmediafork.a: - @$(MAKE) --no-print-directory -C libmediafork all +libhb/libhb.a: + @$(MAKE) --no-print-directory -C libhb all -MediaForkCLI: +HandBrakeCLI: @$(MAKE) --no-print-directory -C test all clean: - @$(MAKE) --no-print-directory -C libmediafork clean + @$(MAKE) --no-print-directory -C libhb clean @$(MAKE) --no-print-directory -C test clean mrproper: clean - (rm -rf contrib/lib ; rm -rf contrib/include/* ) + @$(MAKE) --no-print-directory -C contrib mrproper endif ifeq ($(SYSTEM),CYGWIN_NT-5.1) -all: contrib/lib libmediafork/libmediafork.a MediaForkCLI +all: contrib/.contrib libhb/libhb.a HandbrakeCLI -contrib/lib: - (./configure ; cd contrib ; cp -f ../config.jam . ; jam.exe ; cd ..) +contrib/.contrib: + @$(MAKE) --no-print-directory -C contrib all -libmediafork/libmediafork.a: - @$(MAKE) --no-print-directory -C libmediafork all +libhb/libhb.a: + @$(MAKE) --no-print-directory -C libhb all -MediaForkCLI: +HandbrakeCLI: @$(MAKE) --no-print-directory -C test all clean: - @$(MAKE) --no-print-directory -C libmediafork clean + @$(MAKE) --no-print-directory -C libhb clean @$(MAKE) --no-print-directory -C test clean mrproper: clean - (rm -rf contrib/lib ; rm -rf contrib/include/* ) + @$(MAKE) --no-print-directory -C contrib mrproper endif |