mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 18:08:24 +08:00
* Makefile.in: Added mostlyclean, distclean rules,
and cleaned up clean, realclean.
This commit is contained in:
@ -56,6 +56,8 @@ RANLIB = ranlib
|
|||||||
BISONFLAGS = -d
|
BISONFLAGS = -d
|
||||||
TEXI2ROFF=texi2roff
|
TEXI2ROFF=texi2roff
|
||||||
|
|
||||||
|
SYMLINK = ln -s
|
||||||
|
|
||||||
BISON = `if [ -f ../byacc/byacc ] ; then echo ../byacc/byacc ; else echo byacc ; fi`
|
BISON = `if [ -f ../byacc/byacc ] ; then echo ../byacc/byacc ; else echo byacc ; fi`
|
||||||
# Comment these out if using lex.
|
# Comment these out if using lex.
|
||||||
LEX_OPTIONS = -I -Cem
|
LEX_OPTIONS = -I -Cem
|
||||||
@ -89,6 +91,8 @@ OBJDUMP_PROG=objdump
|
|||||||
|
|
||||||
PROGS = $(SIZE_PROG) $(OBJDUMP_PROG) $(NM_PROG) $(AR_PROG) $(STRIP_PROG) $(RANLIB_PROG)
|
PROGS = $(SIZE_PROG) $(OBJDUMP_PROG) $(NM_PROG) $(AR_PROG) $(STRIP_PROG) $(RANLIB_PROG)
|
||||||
STAGESTUFF = $(PROGS) *.o
|
STAGESTUFF = $(PROGS) *.o
|
||||||
|
# Files that can be generated, but should be in the distribution.
|
||||||
|
DISTSTUFF=arparse.c arlex.c binutils.mm
|
||||||
|
|
||||||
BASEDIR = $(srcdir)/..
|
BASEDIR = $(srcdir)/..
|
||||||
LIBDIR = ./../bfd
|
LIBDIR = ./../bfd
|
||||||
@ -300,17 +304,20 @@ binutils.me: $(srcdir)/binutils.texi
|
|||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
|
|
||||||
clean:
|
mostlyclean:
|
||||||
-rm -f *.o *~ \#* core $(STAGESTUFF) TAGS binutils.?? binutils.???
|
-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
|
etags tags: TAGS
|
||||||
|
|
||||||
TAGS: force
|
TAGS: force
|
||||||
etags $(INCDIR)/*.h $(BFDSRC)/*.[hc] *.[hc]
|
etags $(INCDIR)/*.h $(BFDSRC)/*.[hc] *.[hc]
|
||||||
|
|
||||||
realclean: clean
|
|
||||||
-rm -f $(STAGESTUFF) TAGS
|
|
||||||
|
|
||||||
install: all
|
install: all
|
||||||
-parent=`echo $(bindir)|sed -e 's@/[^/]*$$@@'`; \
|
-parent=`echo $(bindir)|sed -e 's@/[^/]*$$@@'`; \
|
||||||
if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
|
if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
|
||||||
@ -318,6 +325,9 @@ install: all
|
|||||||
for i in $(PROGS) ; do \
|
for i in $(PROGS) ; do \
|
||||||
$(INSTALL_PROGRAM) $$i $(bindir)/`t='$(program_transform_name)'; echo $$i | sed -e "" $$t` ; \
|
$(INSTALL_PROGRAM) $$i $(bindir)/`t='$(program_transform_name)'; echo $$i | sed -e "" $$t` ; \
|
||||||
done
|
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@/[^/]*$$@@'`; \
|
-parent=`echo $(man1dir)|sed -e 's@/[^/]*$$@@'`; \
|
||||||
if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
|
if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
|
||||||
-if [ -d $(man1dir) ] ; then true ; else mkdir $(man1dir) ; fi
|
-if [ -d $(man1dir) ] ; then true ; else mkdir $(man1dir) ; fi
|
||||||
@ -338,10 +348,12 @@ clean-info:
|
|||||||
|
|
||||||
dist: $(DIST_NAME).tar.Z
|
dist: $(DIST_NAME).tar.Z
|
||||||
|
|
||||||
|
diststuff: $(DISTSTUFF)
|
||||||
|
|
||||||
$(DIST_NAME).tar.Z:
|
$(DIST_NAME).tar.Z:
|
||||||
cd ../..; rm -f $(DIST_NAME); ln -s devo $(DIST_NAME)
|
cd ../..; rm -f $(DIST_NAME); ln -s devo $(DIST_NAME)
|
||||||
make arparse.c arlex.c binutils.mm -f Makefile.in
|
make diststuff -f Makefile.in
|
||||||
cd ../ld; make ldgram.c ldgram.h ldlex.c ld.mm -f Makefile.in
|
cd ../ld; make diststuff -f Makefile.in
|
||||||
cd ../..; tar chf - $(DIST_NAME) | compress >$(DIST_NAME).tar.Z
|
cd ../..; tar chf - $(DIST_NAME) | compress >$(DIST_NAME).tar.Z
|
||||||
rm -rf ../../$(DIST_NAME)
|
rm -rf ../../$(DIST_NAME)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user