From f2f6b286ec10ef3355243b4ab63d01d030a09a9a Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Tue, 2 Sep 2008 02:00:39 +0200 Subject: [PATCH] Download common directory from git repository. Signed-off-by: Rod Whitby --- Makefile | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index efd6080..24f789b 100644 --- a/Makefile +++ b/Makefile @@ -29,16 +29,16 @@ build: # [ ! -e fso-${FSO_STABLE_MILESTONE} ] || ${MAKE} fso-${FSO_STABLE_MILESTONE}-packages .PHONY: setup -setup: setup-bitbake setup-openembedded \ +setup: setup-common setup-bitbake setup-openembedded \ setup-fso-unstable setup-fso-testing setup-fso-${FSO_STABLE_MILESTONE} \ setup-shr-unstable setup-shr-testing setup-shr-${SHR_STABLE_MILESTONE} .PHONY: update -update: update-bitbake update-openembedded +update: update-common update-bitbake update-openembedded [ ! -e shr ] || ${MAKE} update-shr .PHONY: status -status: status-bitbake status-openembedded +status: status-common status-bitbake status-openembedded [ ! -e shr ] || ${MAKE} status-shr .PHONY: clobber @@ -110,6 +110,15 @@ shr-%-index: shr-%/.configured bitbake/.svn/entries openembedded/.git/config shr ${MAKE} setup-image-shr-image ; \ ${MAKE} -k index ) +.PHONY: setup-common +.PRECIOUS: common/.git/config +setup-common common/.git/config: + [ -e common/.git/config ] || \ + ( git clone git://git.freesmartphone.org/fso-makefile.git common && \ + rm -f Makefile && \ + ln -s common/Makefile Makefile ) + touch common/.git/config + .PHONY: setup-bitbake .PRECIOUS: bitbake/.svn/entries setup-bitbake bitbake/.svn/entries: @@ -200,6 +209,10 @@ shr-%/.configured: bitbake/.svn/entries openembedded/.git/config shr/.svn/entrie rm -rf shr-$*/tmp/cache touch shr-$*/.configured +.PHONY: update-common +update-common: common/.git/config + ( cd common ; git pull ) + .PHONY: update-bitbake update-bitbake: bitbake/.svn/entries ( cd bitbake ; svn up ) @@ -212,6 +225,10 @@ update-openembedded: openembedded/.git/config update-shr: shr/.svn/entries ( cd shr ; svn up ) +.PHONY: status-common +status-common: common/.git/config + ( cd common ; git diff --stat ) + .PHONY: status-bitbake status-bitbake: bitbake/.svn/entries ( cd bitbake ; svn status ) @@ -244,4 +261,11 @@ distclean-shr: distclean-%: rm -rf $* +.PHONY: push +push: push-common + +.PHONY: push-common +push-common: update-common + ( cd common ; git push --all ssh://git@git.freesmartphone.org/fso-makefile.git ) + # End of Makefile -- 2.11.4.GIT