I am trying to add 64bit support in my Makefile.sfw, which was
written in the way Noam used in cups application. I find 
cmd/Makefile.targ lacks of 64bit support, so I want to suggest
to add the following new targets to it:

PATCH_STAMPS64 =        $(PATCHES:Patches/%=$(VER64)/.patches.%)
$(VER64)/.patched:      $(VER64)/.unpacked $(PATCH_STAMPS64)
        touch $@

$(VER64)/.patches.%:    Patches/%
        (cd $(VER64) ; $(GPATCH) -p0 < ../$<)
        touch $@

$(VER64)/.unpacked:     $(TARBALL) $(PATCHES)
        -$(RM) -r $(VER64)
        mkdir -p tmp; (cd tmp; $(UNPACKARCHIVE) ../$(TARBALL) $(VER))
        mv tmp/$(VER) $(VER64); rmdir tmp
        touch $@

Please let me know if you have any concern or suggestion for
better way to do it. If no objection I will include this change
in my next round of code reveiw for Erlang.

-- 
Regards,
Raymond

Reply via email to