summaryrefslogtreecommitdiff
path: root/Makefile.comm
diff options
context:
space:
mode:
authorwlemb <wlemb>2003-04-07 16:49:10 +0000
committerwlemb <wlemb>2003-04-07 16:49:10 +0000
commite5974c01e435e4c2ebafcf95af6dc6986127ab98 (patch)
treed0eb0feb7235b86fdb73dbcabef0ef373dc386e6 /Makefile.comm
parent2e447a5da531cfae9e5062741070ef2d7fda4245 (diff)
downloadgroff-e5974c01e435e4c2ebafcf95af6dc6986127ab98.tar.gz
* Makefile.comm (depend.temp): Check location of YTABC.
Diffstat (limited to 'Makefile.comm')
-rw-r--r--Makefile.comm7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile.comm b/Makefile.comm
index a0f995c3..58017fbb 100644
--- a/Makefile.comm
+++ b/Makefile.comm
@@ -269,8 +269,13 @@ depend_src: depend.temp
depend.temp: FORCE
> depend.temp;
+ if test -f "$(srcdir)/$(YTABC)"; then \
+ ytabc="$(srcdir)/$(YTABC)"; \
+ else \
+ ytabc="$(YTABC)"; \
+ fi; \
test -z "$(CCSRCS)$(YTABC)" \
- || $(CCC) $(ALL_CCFLAGS) -MM $(CCSRCS) $(YTABC) >>depend.temp
+ || $(CCC) $(ALL_CCFLAGS) -MM $(CCSRCS) $$ytabc >>depend.temp
test -z "$(CSRCS)" \
|| $(CC) $(ALL_CFLAGS) -MM $(CSRCS) >>depend.temp
if test -n "$(YTABH)"; then \