Make fixinc/ work when autogen is not installed.

* fixinc/Makefile.in (subdir): New.
	(fixincl.x, inclhack.sh, fixincl.sh): Use cp instead of $(CP).
	(Makefile): New.

From-SVN: r28986
This commit is contained in:
Jim Wilson 1999-08-30 19:27:15 +00:00 committed by Jim Wilson
parent 829297e618
commit 3f5cd61f62
2 changed files with 14 additions and 3 deletions

View file

@ -1,3 +1,9 @@
Mon Aug 30 12:23:53 1999 Jim Wilson <wilson@cygnus.com>
* fixinc/Makefile.in (subdir): New.
(fixincl.x, inclhack.sh, fixincl.sh): Use cp instead of $(CP).
(Makefile): New.
Mon Aug 30 01:02:09 1999 Jeffrey A Law (law@cygnus.com)
* dwarf2out.c (mem_loc_descriptor): New argument MODE. All callers

View file

@ -31,6 +31,7 @@ target=@target@
# Directory where sources are, from where we are.
srcdir = @srcdir@
VPATH = @srcdir@
subdir = fixinc
# End of variables for you to override.
@ -95,7 +96,7 @@ fixincl.x: fixincl.tpl inclhack.def
$(srcdir)/inclhack.def ; \
else echo You need to install autogen ; \
if [ `pwd` != `cd $(srcdir) ; pwd` ] ; then \
$(CP) $(srcdir)/$@ . ; \
cp $(srcdir)/$@ . ; \
else touch $@ ; fi ; fi
inclhack.sh: inclhack.def inclhack.tpl hackshell.tpl
@ -104,7 +105,7 @@ inclhack.sh: inclhack.def inclhack.tpl hackshell.tpl
autogen -L$(srcdir) $(srcdir)/inclhack.def ; \
else echo You need to install autogen ; \
if [ `pwd` != `cd $(srcdir) ; pwd` ] ; then \
$(CP) $(srcdir)/$@ . ; \
cp $(srcdir)/$@ . ; \
else touch $@ ; fi ; fi
fixincl.sh: inclhack.def inclhack.tpl
@ -114,7 +115,7 @@ fixincl.sh: inclhack.def inclhack.tpl
$(srcdir)/inclhack.def ; touch $@ ; \
else echo You need to install autogen ; \
if [ `pwd` != `cd $(srcdir) ; pwd` ] ; then \
$(CP) $(srcdir)/$@ . ; \
cp $(srcdir)/$@ . ; \
else touch $@ ; fi ; fi
clean:
@ -145,3 +146,7 @@ install: $(TARGETS)
then cp inclhack.sh ../fixinc.sh ; \
else cp $(srcdir)/inclhack.sh ../fixinc.sh ; fi ; \
fi
Makefile: Makefile.in ../config.status
cd .. \
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status