Apply build system fixes for OpenBSD contributed by George Koehler.
This commit is contained in:
@@ -45,9 +45,9 @@ $(eval CLEANABLES += $o $1/Lpars.h)
|
||||
$o: $1/Lpars.h
|
||||
$1/Lpars.h: $2 $(LLGEN)
|
||||
@echo LLGEN $1/Lpars.c
|
||||
@mkdir -p $(dir $o)
|
||||
@mkdir -p $1
|
||||
$(hide) $(RM) $o $1/Lpars.h
|
||||
$(hide) cd $(dir $o) && $(LLGEN) $(abspath $2)
|
||||
$(hide) cd $1 && $(LLGEN) $(abspath $2)
|
||||
|
||||
$(foreach f,$o,$(call cfile,$f))
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@ $(eval g := $(OBJDIR)/$D/dmach.c $(OBJDIR)/$D/intable.c)
|
||||
$(wordlist 2, $(words $g), $g): $(firstword $g)
|
||||
$(firstword $g): $(util-ack-mktables)
|
||||
@echo MKTABLES
|
||||
@mkdir -p $(dir $g)
|
||||
$(hide) cd $(dir $g) && $(util-ack-mktables) $(INSDIR)/share
|
||||
@mkdir -p $(OBJDIR)/$D
|
||||
$(hide) cd $(OBJDIR)/$D && $(util-ack-mktables) $(INSDIR)/share
|
||||
|
||||
$(eval CLEANABLES += $g)
|
||||
endef
|
||||
|
||||
Reference in New Issue
Block a user