Gene Cumm
2011-Apr-22 20:28 UTC
[syslinux] [PATCH][git-pull] diag/geodsp/: Fixes/Improvements
git://git.zytor.com/users/genec/syslinux.git Branch diag-geodsp-for-hpa Numerous improvements, most notably that we no longer make 3 8MiB images during a build, the .img.xz files will stay untouched after a 'make clean;make' and use the program variables from MCONFIG. I'm still trying to figure out if there's a way to have/simulate a prerequisite that is ignored when not present and the target is otherwise up to date. The nearest I can consider is replacing: %.img.xz: %.bin mk-lba-img ./mk-lba-img $< | $(XZ) -0 > $@ with: %.img.xz: %.bin make mk-lba-img ./mk-lba-img $< | $(XZ) -0 > $@ such that a 'make clean' deletes the host-specific binary and a rebuild will proceed successfully but I'm not sure about the parallelism (My make-fu is not strong enough). -- -Gene
Gene Cumm
2011-Apr-22 21:19 UTC
[syslinux] [PATCH][git-pull] diag/geodsp/: Fixes/Improvements
On Fri, Apr 22, 2011 at 16:28, Gene Cumm <gene.cumm at gmail.com> wrote:> git://git.zytor.com/users/genec/syslinux.git > > Branch diag-geodsp-for-hpa > > Numerous improvements, most notably that we no longer make 3 8MiB > images during a build, the .img.xz files will stay untouched after a > 'make clean;make' and use the program variables from MCONFIG. > > I'm still trying to figure out if there's a way to have/simulate a > prerequisite that is ignored when not present and the target is > otherwise up to date. > > The nearest I can consider is replacing: > > %.img.xz: %.bin mk-lba-img > ? ? ? ?./mk-lba-img $< | $(XZ) -0 > $@ > > with: > > %.img.xz: %.bin > ? ? ? ?make mk-lba-img > ? ? ? ?./mk-lba-img $< | $(XZ) -0 > $@ > > such that a 'make clean' deletes the host-specific binary and a > rebuild will proceed successfully but I'm not sure about the > parallelism (My make-fu is not strong enough).The closest I can think of is: MK_LBA_IMG = mk-lba-img.c $(shell ls mk-lba-img) %.img.xz: %.bin $(MK_LBA_IMG) make mk-lba-img ./mk-lba-img $< | $(XZ) -0 > $@ which satisfies everything I'm looking for except I don't know about the parallelism part. This also updates %.img.xz if mk-lba-img.c is updated. -- -Gene