PERFORCE change 80449 for review

soc-saturnero soc-saturnero at FreeBSD.org
Mon Jul 18 16:11:47 GMT 2005


http://perforce.freebsd.org/chv.cgi?CH=80449

Change 80449 by soc-saturnero at soc-saturnero_sberta on 2005/07/18 16:11:30

	Added installkernel and installworld target.
	Added cleandir target.

Affected files ...

.. //depot/projects/soc2005/freesbie/Makefile#4 edit
.. //depot/projects/soc2005/freesbie/scripts/cleandir.sh#1 add
.. //depot/projects/soc2005/freesbie/scripts/installkernel.sh#1 add
.. //depot/projects/soc2005/freesbie/scripts/installworld.sh#1 add
.. //depot/projects/soc2005/freesbie/scripts/launch.sh#4 edit

Differences ...

==== //depot/projects/soc2005/freesbie/Makefile#4 (text+ko) ====

@@ -5,7 +5,9 @@
 #
 # $FreeBSD$
 
-all: buildworld buildkernel
+all: freesbie
+
+freesbie: buildworld buildkernel installworld installkernel
 
 buildworld: .done_buildworld
 .done_buildworld:
@@ -14,13 +16,29 @@
 	@sh ./scripts/launch.sh buildworld .tmp_buildworld
 	@mv .tmp_buildworld .done_buildworld
 
-buildkernel: .done_buildworld .done_buildkernel
+installworld: .done_installworld
+.done_installworld: .done_buildworld
+	@-rm -f .tmp_installworld
+	@touch .tmp_installworld
+	@sh ./scripts/launch.sh installworld .tmp_installworld
+	@mv .tmp_installworld .done_installworld
+
+buildkernel: .done_buildkernel
 .done_buildkernel:
 	@-rm -f .tmp_buildkernel
 	@touch .tmp_buildkernel
 	@sh ./scripts/launch.sh buildkernel .tmp_buildkernel
 	@mv .tmp_buildkernel .done_buildkernel
 
+installkernel: .done_installkernel
+.done_installkernel: .done_buildkernel .done_installworld
+	@-rm -f .tmp_installkernel
+	@touch .tmp_installkernel
+	@sh ./scripts/launch.sh installkernel .tmp_installkernel
+	@mv .tmp_installkernel .done_installkernel
 
 clean:
 	@-rm -f .tmp* .done* > /dev/null 2>&1
+
+cleandir: clean
+	@sh ./scripts/launch.sh cleandir
==== //depot/projects/soc2005/freesbie/scripts/launch.sh#4 (text+ko) ====

@@ -25,7 +25,7 @@
 
 TARGET=$1;
 shift;
-if [ -n "$1" ]; then
+if [ -n "${1:-}" ]; then
     LOGFILE=${LOCALDIR}/$1
 else
     LOGFILE=$(mktemp -q /tmp/freesbie.XXXXXX)


More information about the p4-projects mailing list