aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>1992-09-02 07:26:15 +0000
committerPer Bothner <per@bothner.com>1992-09-02 07:26:15 +0000
commit8d5d0e117f9998e8b8cded5e0ecef55126a4ac3e (patch)
tree4a82a1e9b692d44190a1572a3d92e28f7694368f /binutils
parentc52bdfecfd0496bfad1296a608b4898b67a656dc (diff)
downloadgdb-8d5d0e117f9998e8b8cded5e0ecef55126a4ac3e.zip
gdb-8d5d0e117f9998e8b8cded5e0ecef55126a4ac3e.tar.gz
gdb-8d5d0e117f9998e8b8cded5e0ecef55126a4ac3e.tar.bz2
* Makefile.in: Added mostlyclean, distclean rules,
and cleaned up clean, realclean.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/Makefile.in26
1 files changed, 19 insertions, 7 deletions
diff --git a/binutils/Makefile.in b/binutils/Makefile.in
index a5b6625..af0961e 100644
--- a/binutils/Makefile.in
+++ b/binutils/Makefile.in
@@ -56,6 +56,8 @@ RANLIB = ranlib
BISONFLAGS = -d
TEXI2ROFF=texi2roff
+SYMLINK = ln -s
+
BISON = `if [ -f ../byacc/byacc ] ; then echo ../byacc/byacc ; else echo byacc ; fi`
# Comment these out if using lex.
LEX_OPTIONS = -I -Cem
@@ -89,6 +91,8 @@ OBJDUMP_PROG=objdump
PROGS = $(SIZE_PROG) $(OBJDUMP_PROG) $(NM_PROG) $(AR_PROG) $(STRIP_PROG) $(RANLIB_PROG)
STAGESTUFF = $(PROGS) *.o
+# Files that can be generated, but should be in the distribution.
+DISTSTUFF=arparse.c arlex.c binutils.mm
BASEDIR = $(srcdir)/..
LIBDIR = ./../bfd
@@ -300,17 +304,20 @@ binutils.me: $(srcdir)/binutils.texi
######################################################################
-clean:
- -rm -f *.o *~ \#* core $(STAGESTUFF) TAGS binutils.?? binutils.???
+mostlyclean:
+ -rm -f *.o *~ \#* core *.o binutils.?? binutils.???
+clean: mostlyclean
+ -rm $(STAGESTUFF)
+distclean: clean
+ -rm Makefile config.status
+realclean: distclean
+ -rm -f $(DISTSTUFF) TAGS
etags tags: TAGS
TAGS: force
etags $(INCDIR)/*.h $(BFDSRC)/*.[hc] *.[hc]
-realclean: clean
- -rm -f $(STAGESTUFF) TAGS
-
install: all
-parent=`echo $(bindir)|sed -e 's@/[^/]*$$@@'`; \
if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
@@ -318,6 +325,9 @@ install: all
for i in $(PROGS) ; do \
$(INSTALL_PROGRAM) $$i $(bindir)/`t='$(program_transform_name)'; echo $$i | sed -e "" $$t` ; \
done
+ if [ -d $(tooldir) ] ; then true ; else mkdir $(tooldir) ; fi
+ -rm -f $(tooldir)/nm
+ cd $(tooldir); $(SYMLINK) $(bindir)/$(program_prefix)nm$(program_suffix) nm
-parent=`echo $(man1dir)|sed -e 's@/[^/]*$$@@'`; \
if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
-if [ -d $(man1dir) ] ; then true ; else mkdir $(man1dir) ; fi
@@ -338,10 +348,12 @@ clean-info:
dist: $(DIST_NAME).tar.Z
+diststuff: $(DISTSTUFF)
+
$(DIST_NAME).tar.Z:
cd ../..; rm -f $(DIST_NAME); ln -s devo $(DIST_NAME)
- make arparse.c arlex.c binutils.mm -f Makefile.in
- cd ../ld; make ldgram.c ldgram.h ldlex.c ld.mm -f Makefile.in
+ make diststuff -f Makefile.in
+ cd ../ld; make diststuff -f Makefile.in
cd ../..; tar chf - $(DIST_NAME) | compress >$(DIST_NAME).tar.Z
rm -rf ../../$(DIST_NAME)