Commit a30ecd21 authored by Niels Möller's avatar Niels Möller
Browse files

Create .dist_headers and .dist_classes files. Distribute .x files.

Rev: src/Makefile.am.in:1.5
Rev: src/make_am:1.4
parent 11d285d6
## Process this file with make_am to produce Makefile.am
SUBDIRS: lib include
CVS_HEADERS: cvs_headers
CLASS_FILES: dist_x_files
BODY:
AUTOMAKE_OPTIONS = foreign
......@@ -65,7 +66,7 @@ symmetric:
(cd lib && $(MAKE) libsymmetric.a)
EXTRA_DIST = atoms.in process_atoms $(generated_sources) HACKING \
$(cvs_headers) Makefile.am.in
$(cvs_headers) $(dist_x_files) Makefile.am.in
# Class files
# SUFFIXES = .xh .xc
......
......@@ -93,21 +93,42 @@ while true; do
# put all the files on one line, for simplicity.
# comm -12 - <(./cvs_headers $dir) | sed 's/\$/ \\\\/';
add_command "(echo $args=\\\\;
comm -12 - <(./cvs_headers $dir) | tr '\\n' ' ';
echo) 1>&4"
if [ $rethink = yes ]; then
add_command "(echo $args = .dist_headers\\\\;
comm -12 - <(./cvs_headers $dir) \\
| tee $dir/.dist_headers | tr '\\n' ' ';
echo) 1>&4"
else
(echo $args = .dist_headers \\
tr <.dist_headers '\n' ' '
echo) 1>&4
fi
;;
CLASS_FILES)
( echo $args = .dist_classes \\;
if [ $rethink = yes ]; then
./used_headers .x $dir | tee $dir/.dist_classes \
| tr '\n' ' '
else
tr <.dist_classes '\n' ' '
fi
echo) 1>&4
;;
SUBDIRS)
subdirs=$args
echo 1>&4 "SUBDIRS = $args"
for d in $args; do
add_command "$0 $dir/$d"
add_command "$0 $options $dir/$d"
done
;;
BODY)
if [ $top = yes ]; then
./used_headers . $subdirs | run_commands
if [ $rethink = yes ]; then
./used_headers .h . $subdirs | run_commands
else
run_commands </dev/null
fi
else
run_commands
fi && cat <&3 >&4
......
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