Commit 3f5cd61f by Jim Wilson Committed by Jim Wilson

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
parent 829297e6
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) Mon Aug 30 01:02:09 1999 Jeffrey A Law (law@cygnus.com)
* dwarf2out.c (mem_loc_descriptor): New argument MODE. All callers * dwarf2out.c (mem_loc_descriptor): New argument MODE. All callers
......
...@@ -31,6 +31,7 @@ target=@target@ ...@@ -31,6 +31,7 @@ target=@target@
# Directory where sources are, from where we are. # Directory where sources are, from where we are.
srcdir = @srcdir@ srcdir = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
subdir = fixinc
# End of variables for you to override. # End of variables for you to override.
...@@ -95,7 +96,7 @@ fixincl.x: fixincl.tpl inclhack.def ...@@ -95,7 +96,7 @@ fixincl.x: fixincl.tpl inclhack.def
$(srcdir)/inclhack.def ; \ $(srcdir)/inclhack.def ; \
else echo You need to install autogen ; \ else echo You need to install autogen ; \
if [ `pwd` != `cd $(srcdir) ; pwd` ] ; then \ if [ `pwd` != `cd $(srcdir) ; pwd` ] ; then \
$(CP) $(srcdir)/$@ . ; \ cp $(srcdir)/$@ . ; \
else touch $@ ; fi ; fi else touch $@ ; fi ; fi
inclhack.sh: inclhack.def inclhack.tpl hackshell.tpl inclhack.sh: inclhack.def inclhack.tpl hackshell.tpl
...@@ -104,7 +105,7 @@ 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 ; \ autogen -L$(srcdir) $(srcdir)/inclhack.def ; \
else echo You need to install autogen ; \ else echo You need to install autogen ; \
if [ `pwd` != `cd $(srcdir) ; pwd` ] ; then \ if [ `pwd` != `cd $(srcdir) ; pwd` ] ; then \
$(CP) $(srcdir)/$@ . ; \ cp $(srcdir)/$@ . ; \
else touch $@ ; fi ; fi else touch $@ ; fi ; fi
fixincl.sh: inclhack.def inclhack.tpl fixincl.sh: inclhack.def inclhack.tpl
...@@ -114,7 +115,7 @@ fixincl.sh: inclhack.def inclhack.tpl ...@@ -114,7 +115,7 @@ fixincl.sh: inclhack.def inclhack.tpl
$(srcdir)/inclhack.def ; touch $@ ; \ $(srcdir)/inclhack.def ; touch $@ ; \
else echo You need to install autogen ; \ else echo You need to install autogen ; \
if [ `pwd` != `cd $(srcdir) ; pwd` ] ; then \ if [ `pwd` != `cd $(srcdir) ; pwd` ] ; then \
$(CP) $(srcdir)/$@ . ; \ cp $(srcdir)/$@ . ; \
else touch $@ ; fi ; fi else touch $@ ; fi ; fi
clean: clean:
...@@ -145,3 +146,7 @@ install: $(TARGETS) ...@@ -145,3 +146,7 @@ install: $(TARGETS)
then cp inclhack.sh ../fixinc.sh ; \ then cp inclhack.sh ../fixinc.sh ; \
else cp $(srcdir)/inclhack.sh ../fixinc.sh ; fi ; \ else cp $(srcdir)/inclhack.sh ../fixinc.sh ; fi ; \
fi fi
Makefile: Makefile.in ../config.status
cd .. \
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment