"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "distrib/i386/g4u/Makefile" between
g4u-2.5.tgz and g4u-2.6.tgz

About: g4u ("ghosting for unix") is a NetBSD-based bootfloppy/CD-ROM that allows easy cloning of PC harddisks to deploy a common setup on a number of PCs using FTP.

Makefile  (g4u-2.5.tgz):Makefile  (g4u-2.6.tgz)
# #
# g4u main Makefile # g4u main Makefile
# #
# Copyright (c) 1999-2012 Hubert Feyrer <hubert@feyrer.de> # Copyright (c) 1999-2017 Hubert Feyrer <hubert@feyrer.de>
# #
# Build a kernel? May be passed in from src/g4u-build # Build a kernel? May be passed in from src/g4u-build
#G4U_BUILD_KERNEL?= true #G4U_BUILD_KERNEL?= true
G4U_BUILD_KERNEL?= false G4U_BUILD_KERNEL?= false
# G4U Version built into bootloader and usage: # G4U Version built into bootloader and usage:
G4UVERSION=2.5 G4UVERSION=2.6
# Kernel build flags: # Kernel build flags:
BUILD_KERNEL_FLAGS= -u # Don't 'make clean' first BUILD_KERNEL_FLAGS= -u # Don't 'make clean' first
SRC_DIR= ${.CURDIR}/../../..
OBJ_DIR!= cd ${SRC_DIR} ; ${MAKE} OBJMACHINE=${OBJMACHINE} print-objdir
# Directory layout # Directory layout
FLOPPYDIR= ${.CURDIR}/../floppies/bootfloppy-g4u FLOPPYDIR= ${.CURDIR}/../floppies/bootfloppy-g4u
CDDIR= ${.CURDIR}/../cdroms/bootcd-g4u CDDIR= ${.CURDIR}/../cdroms/bootcd-g4u
RAMDISKDIR= ${.CURDIR}/../ramdisks/ramdisk-g4u RAMDISKDIR= ${.CURDIR}/../ramdisks/ramdisk-g4u
INSTKERNELDIR= ${.CURDIR}/../instkernel INSTKERNELDIR= ${.CURDIR}/../instkernel
KMODDIR= ${.CURDIR}/../kmod KMODDIR= ${.CURDIR}/../kmod
INSTKERNELOBJDIR=${OBJ_DIR}/distrib/i386/instkernel
# Object directory: # Object directory:
.-include "${MAKECONF:U/etc/mk.conf}" .-include "${MAKECONF:U/etc/mk.conf}"
O= obj${OBJMACHINE:D.${MACHINE}} O= obj${OBJMACHINE:D.${MACHINE}}
########################################################################### ###########################################################################
dependall all: g4u1.fs g4u.iso dependall all: g4u1.fs g4u.iso g4u-kernel.gz
ls -l `pwd`/g4u*fs ls -l `pwd`/g4u*fs
ls -l `pwd`/g4u.iso ls -l `pwd`/g4u.iso
ls -l `pwd`/g4u-kernel.gz
g4u1.fs: ${FLOPPYDIR}/$O/g4u1.fs g4u1.fs: ${FLOPPYDIR}/$O/g4u1.fs
ln -f ${FLOPPYDIR}/$O/g4u*.fs . ln -f ${OBJ_DIR}/distrib/i386/floppies/bootfloppy-g4u/g4u*.fs .
g4u.iso: ${CDDIR}/$O/g4u.iso g4u.iso: ${CDDIR}/$O/g4u.iso
ln -f ${CDDIR}/$O/g4u.iso . ln -f ${OBJ_DIR}/distrib/i386/cdroms/bootcd-g4u//g4u.iso .
g4u-kernel.gz: ${INSTKERNELOBJDIR}/netbsd-g4u.gz
cp ${INSTKERNELOBJDIR}/netbsd-g4u.gz g4u-kernel.gz
${FLOPPYDIR}/$O/g4u1.fs: ${INSTKERNELDIR}/$O/netbsd-g4u.gz ${FLOPPYDIR}/$O/g4u1.fs: ${INSTKERNELOBJDIR}/netbsd-g4u.gz
cd ${FLOPPYDIR}; ${MAKE} cd ${FLOPPYDIR}; ${MAKE}
${CDDIR}/$O/g4u.iso: ${INSTKERNELDIR}/$O/netbsd-g4u.gz ${CDDIR}/$O/g4u.iso: ${INSTKERNELOBJDIR}/netbsd-g4u.gz
cd ${CDDIR} ; ${MAKE} G4UVERSION=${G4UVERSION} cd ${CDDIR} ; ${MAKE} G4UVERSION=${G4UVERSION}
${INSTKERNELDIR}/$O/netbsd-g4u.gz: ${RAMDISKDIR}/$O/ramdisk-g4u.fs # +kernel ${INSTKERNELOBJDIR}/netbsd-g4u.gz: ${RAMDISKDIR}/$O/ramdisk-g4u.fs # +kernel
cd ${NETBSDSRCDIR}/etc ; ${MAKE} MAKEDEV cd ${NETBSDSRCDIR}/etc ; ${MAKE} MAKEDEV
cd ${RAMDISKDIR} ; ${MAKE} G4UVERSION=${G4UVERSION} cd ${RAMDISKDIR} ; ${MAKE} G4UVERSION=${G4UVERSION}
cd ${KMODDIR} ; ${MAKE} RAMDISK=ramdisk-g4u #HF#cd ${KMODDIR} ; ${MAKE} RAMDISK=ramdisk-g4u
: :
if ${G4U_BUILD_KERNEL} ; then ${NETBSDSRCDIR}/build.sh ${BUILD_KERNEL_FLA GS} kernel=G4U-KERNEL ; fi if ${G4U_BUILD_KERNEL} ; then ${NETBSDSRCDIR}/build.sh ${BUILD_KERNEL_FLA GS} kernel=G4U-KERNEL ; fi
: :
cd ${INSTKERNELDIR} ; ${MAKE} -f Makefile.g4u cd ${INSTKERNELDIR} ; ${MAKE} -f Makefile.g4u
${RAMDISKDIR}/$O/ramdisk-g4u.fs: obj ${RAMDISKDIR}/$O/ramdisk-g4u.fs: obj
if ! grep HF/G4U ${NETBSDSRCDIR}/bin/dd/Makefile >/dev/null ; \ if ! grep HF/G4U ${NETBSDSRCDIR}/bin/dd/Makefile >/dev/null ; \
then dir=${NETBSDSRCDIR}/bin/dd; patch=Makefile.patch-g4u; echo "***" App lying $$patch in $$dir ; cd $$dir ; patch -b <$$patch ; fi then dir=${NETBSDSRCDIR}/bin/dd; patch=Makefile.patch-g4u; echo "***" App lying $$patch in $$dir ; cd $$dir ; patch -b <$$patch ; fi
: :
if ! grep HF/G4U ${NETBSDSRCDIR}/bin/sh/Makefile >/dev/null ; \ if ! grep HF/G4U ${NETBSDSRCDIR}/bin/sh/Makefile >/dev/null ; \
then dir=${NETBSDSRCDIR}/bin/sh; patch=Makefile.patch-g4u; echo "***" App lying $$patch in $$dir ; cd $$dir ; patch -b <$$patch ; fi then dir=${NETBSDSRCDIR}/bin/sh; patch=Makefile.patch-g4u; echo "***" App lying $$patch in $$dir ; cd $$dir ; patch -b <$$patch ; fi
: :
if ! grep HF/G4U ${NETBSDSRCDIR}/sys/dev/ata/wd.c >/dev/null ; \ if ! grep HF/G4U ${NETBSDSRCDIR}/sys/dev/ata/wd.c >/dev/null ; \
then dir=${NETBSDSRCDIR}/sys/dev/ata; patch=wd.c.patch-g4u; echo "***" Ap plying $$patch in $$dir ; cd $$dir ; patch -b <$$patch ; fi then dir=${NETBSDSRCDIR}/sys/dev/ata; patch=wd.c.patch-g4u; echo "***" Ap plying $$patch in $$dir ; cd $$dir ; patch -b <$$patch ; fi
: :
if ! grep HF/G4U ${NETBSDSRCDIR}/sys/dev/scsipi/sd.c >/dev/null ; \ # if ! grep HF/G4U ${NETBSDSRCDIR}/sys/dev/scsipi/sd.c >/dev/null ; \
then dir=${NETBSDSRCDIR}/sys/dev/scsipi; patch=sd.c.patch-g4u; echo "***" # then dir=${NETBSDSRCDIR}/sys/dev/scsipi; patch=sd.c.patch-g4u; echo "***"
Applying $$patch in $$dir ; cd $$dir ; patch -b <$$patch ; fi Applying $$patch in $$dir ; cd $$dir ; patch -b <$$patch ; fi
# :
if ! grep HF/G4U ${NETBSDSRCDIR}/sys/dev/dksubr.c >/dev/null ; \
then dir=${NETBSDSRCDIR}/sys/dev; patch=dksubr.c.patch-g4u; echo "***" Ap
plying $$patch in $$dir ; cd $$dir ; patch -b <$$patch ; fi
: :
if ! grep HF/G4U ${NETBSDSRCDIR}/sys/kern/subr_prf.c >/dev/null ; \ if ! grep HF/G4U ${NETBSDSRCDIR}/sys/kern/subr_prf.c >/dev/null ; \
then dir=${NETBSDSRCDIR}/sys/kern; patch=subr_prf.c.patch-g4u; echo "***" Applying $$patch in $$dir ; cd $$dir ; patch -b <$$patch ; fi then dir=${NETBSDSRCDIR}/sys/kern; patch=subr_prf.c.patch-g4u; echo "***" Applying $$patch in $$dir ; cd $$dir ; patch -b <$$patch ; fi
##### #####
obj: obj:
cd ${RAMDISKDIR} ; ${MAKE} $* cd ${RAMDISKDIR} ; ${MAKE} $*
cd ${INSTKERNELDIR} ; ${MAKE} -f Makefile.g4u $* cd ${INSTKERNELDIR} ; ${MAKE} -f Makefile.g4u $*
cd ${FLOPPYDIR} ; ${MAKE} $* cd ${FLOPPYDIR} ; ${MAKE} $*
skipping to change at line 88 skipping to change at line 99
clean distclean cleandir: clean distclean cleandir:
-cd ${RAMDISKDIR} ; ${MAKE} $* -cd ${RAMDISKDIR} ; ${MAKE} $*
-cd ${INSTKERNELDIR} ; ${MAKE} -f Makefile.g4u $* -cd ${INSTKERNELDIR} ; ${MAKE} -f Makefile.g4u $*
-cd ${FLOPPYDIR} ; ${MAKE} $* -cd ${FLOPPYDIR} ; ${MAKE} $*
-cd ${CDDIR} ; ${MAKE} $* -cd ${CDDIR} ; ${MAKE} $*
-cd ${KMODDIR} ; ${MAKE} $* -cd ${KMODDIR} ; ${MAKE} $*
-rm -fr iso -rm -fr iso
-rm -f g4u*.iso -rm -f g4u*.iso
-rm -f g4u*.fs -rm -f g4u*.fs
-rm -f g4u-kernel.gz
release distribution: #g4u1.fs g4u.iso release distribution: #g4u1.fs g4u.iso
-rm -fr /tmp/g4u -rm -fr /tmp/g4u
-mkdir /tmp/g4u -mkdir /tmp/g4u
cp g4u*.fs /tmp/g4u cp g4u*.fs /tmp/g4u
cp g4u.iso /tmp/g4u cp g4u.iso /tmp/g4u
cp g4u-kernel.gz /tmp/g4u
#cd ${.CURDIR} ; ${MAKE} distclean #cd ${.CURDIR} ; ${MAKE} distclean
cd ${NETBSDSRCDIR} ; \ cd ${NETBSDSRCDIR} ; \
tar -plzvcf /tmp/g4u/g4u.tgz \ tar -plzvcf /tmp/g4u/g4u.tgz \
--exclude '*/$O*' \ --exclude '*/$O*' \
--exclude 'distrib/i386/g4u/g4u.iso' \ --exclude 'distrib/i386/g4u/g4u.iso' \
--exclude 'distrib/i386/g4u/log.i386' \ --exclude 'distrib/i386/g4u/log.i386' \
--exclude 'distrib/i386/g4u/g4u*.fs' \ --exclude 'distrib/i386/g4u/g4u*.fs' \
g4u-build \ g4u-build \
source_me-g4u \ source_me-g4u \
distrib/i386/g4u \ distrib/i386/g4u \
distrib/i386/floppies/bootfloppy-g4u \ distrib/i386/floppies/bootfloppy-g4u \
distrib/i386/cdroms/Makefile.cdrom-g4u \ distrib/i386/cdroms/Makefile.cdrom-g4u \
distrib/i386/cdroms/bootcd-g4u \ distrib/i386/cdroms/bootcd-g4u \
distrib/i386/instkernel/Makefile.g4u \ distrib/i386/instkernel/Makefile.g4u \
distrib/i386/ramdisks/ramdisk-g4u \ distrib/i386/ramdisks/ramdisk-g4u \
distrib/i386/ramdisks/common/*-g4u \ distrib/i386/ramdisks/common/*-g4u \
sys/dev/scsipi/sd.c.patch-g4u \ sys/dev/scsipi/sd.c.patch-g4u \
sys/dev/ata/wd.c.patch-g4u \ sys/dev/ata/wd.c.patch-g4u \
sys/dev/dksubr.c.patch-g4u \
sys/kern/subr_prf.c.patch-g4u \ sys/kern/subr_prf.c.patch-g4u \
bin/sh/Makefile.patch-g4u \ bin/sh/Makefile.patch-g4u \
bin/dd/Makefile.patch-g4u \ bin/dd/Makefile.patch-g4u \
sys/arch/i386/conf/G4U-KERNEL \ sys/arch/i386/conf/G4U-KERNEL \
; ;
cp ${NETBSDSRCDIR}/sys/arch/i386/conf/G4U-KERNEL /tmp/g4u/G4U-KERNEL cp ${NETBSDSRCDIR}/sys/arch/i386/conf/G4U-KERNEL /tmp/g4u/G4U-KERNEL
upload: upload:
ssh fehu.org mkdir www/g4u/incoming-release ssh fehu.org mkdir www/g4u/incoming-release
rsync --progress -a /tmp/g4u/* fehu.org:www/g4u/incoming-release rsync --progress -a /tmp/g4u/* fehu.org:www/g4u/incoming-release
 End of changes. 16 change blocks. 
12 lines changed or deleted 27 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)