]> git.ipfire.org Git - thirdparty/make.git/commitdiff
Formerly compatMakefile.~75~
authorRoland McGrath <roland@redhat.com>
Mon, 31 May 1993 22:48:16 +0000 (22:48 +0000)
committerRoland McGrath <roland@redhat.com>
Mon, 31 May 1993 22:48:16 +0000 (22:48 +0000)
compatMakefile

index 33816f7b24a7fe279bb5051ccecb2f29f45558be..cc080a38604135dbf0c669d71d3e582f45573834 100644 (file)
@@ -39,6 +39,7 @@ LDFLAGS = @LDFLAGS@
 #                              without complaint but produce losing code,
 #                              so beware.
 # NeXT 1.0a uses an old version of GCC, which required -D__inline=inline.
+# See also `config.h'.
 defines = @DEFS@ -DLIBDIR=\"$(libdir)\" -DINCLUDEDIR=\"$(includedir)\"
 
 # Which flavor of remote job execution support to use.
@@ -134,7 +135,7 @@ srcs = $(srcdir)/commands.c $(srcdir)/job.c $(srcdir)/dir.c         \
 
 
 .SUFFIXES:
-.SUFFIXES: .o .c .h .ps .dvi .texinfo
+.SUFFIXES: .o .c .h .ps .dvi .info .texinfo
 
 .PHONY: all check info dvi
 all: make
@@ -196,9 +197,11 @@ $(bindir)/$(instname): make
        mv $@.new $@
 
 $(infodir)/$(instname).info: make.info
-       for file in make.info*; do \
+       if [ -r ./make.info ]; then dir=.; else dir=$(srcdir); fi; \
+       for file in $${dir}/make.info*; do \
+         name="`basename $$file`"; \
          $(INSTALL_DATA) $$file \
-           `echo $@ | sed "s,$(instname).info\$$,$$file,"`; \
+           `echo $@ | sed "s,$(instname).info\$$,$$name,"`; \
        done
 
 $(mandir)/$(instname).$(manext): make.man