This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gas testsuites and cpp usage


In general, there are no Makefiles inside the testsuites (except,
perhaps, one at the top, but for other reasons).  You want to avoid
Makefiles anyway, since they may automatically run commands which may
not work on other people's machines.

A shell script is permissible.  In fact, shell scripts support "here
documents" which could be used instead of a separate input file.  Like
this:

--- foo.sh ---
#!/bin/sh

# Run this script to generate foo.s

gcc -E - <<HERE > foo.s
; Warning: foo.s is generated from foo.sh.  Do not edit foo.s!

blah
blah

HERE


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]