################################################################################ # Master Makefile for System Sources # T.Barnaby, BEAM Ltd, 2007-02-21 ################################################################################ # # Normal build is (as root): # make rpms # TOP = ${shell pwd} srcDir = ${shell pwd} include Makefile.config DESTDIR = ${srcDir}/rootfs DISTDIR = /dist/tms all: rootfsAll kernelAll admxrcAll init: mkdir -p rootfs-build rootfs kernel config: init rootfsConfig kernelConfig admxrcConfig install: all rootfsInstall kernelInstall kernelModulesInstall admxrcInstall nfsBootInstall clean: admxrcClean rm -fr rootfs-build rootfs var kernel rm networkBoot/initrd.img rpms: tms-mcsys.spec tar -czC .. -f ${rpmDir}/SOURCES/tms-mcsys.tar.gz tms-mcsys rpmbuild --target=${arch} -bb -D "version ${version}" -D "release ${release}" tms-mcsys.spec rpmsInstall: cp ${rpmDir}/RPMS/${arch}/tms-mcsys-${version}-${release}*.${arch}.rpm ${DISTDIR}/packages createrepo ${DISTDIR} # Debug bits sysBootInstall: cp -a var/lib/tftpboot/tms-mcsys /var/lib/tftpboot sysRootInstall: cp -a rootfs /usr/tms include Makefile.sys