[pdp7-unix] "original-commands" branch

Lars Brinkhoff lars at nocrew.org
Mon Oct 28 03:48:36 AEST 2019


Phil Budne wrote:
> I cleaned up build/Makefile

I'm not sure what level of Makefile tricks is desired here.  For your
consideration, I believe many rules like this:

$(BINDIR)/sh: $(CMDSRC)/sh.s
        $(AS) $(ASARGS) -o $(BINDIR)/sh $(CMDSRC)/sh.s

can be replaced by a single implicit rule such as:

$(BINDIR)/%: $(CMDSRC)/%.s
        $(AS) $(ASARGS) -o $@ $^

This wouldn't work for files built from several source files though.


More information about the pdp7-unix mailing list