#!/bin/sh
# This is a shell archive (produced by GNU sharutils 4.2c).
# To extract the files from this archive, save it to some FILE, remove
# everything before the `!/bin/sh' line above, then type `sh FILE'.
#
# Made on 2000-09-27 15:24 CEST by <jochen@kiste>.
# Source directory was `/home/jochen/makebug'.
#
# Existing files will *not* be overwritten unless `-c' is specified.
# This format requires very little intelligence at unshar time.
# "if test", "echo", "mkdir", and "sed" may be needed.
#
# This shar contains:
# length mode       name
# ------ ---------- ------------------------------------------
#   1901 -rw-r--r-- Makefile
#    137 -rw-r--r-- Makefile.included
#
echo=echo
shar_tty= shar_n= shar_c='
'
mkdir _sh27785 || ( echo 'failed to create locking directory' '_sh27785'; exit 1 )
# ============= Makefile ==============
if test -f 'Makefile' && test "$first_param" != -c; then
  $echo 'x -' SKIPPING 'Makefile' '(file already exists)'
else
  $echo 'x -' extracting 'Makefile' '(text)'
  sed 's/^X//' << 'SHAR_EOF' > 'Makefile' &&
X
X#
X# Makefile
X#
X
X.PHONY: all clean check test show
X
Xall:
X	@echo "install test files"
X	echo "# dummy file" > prog_main_src
X	echo "# dummy file" > prog_main_intern_src
X	echo "# dummy file" > prog_incl_src
X	echo "# dummy file" > prog_incl_extern_src
X	echo "# dummy file" > prog_split_src
X	echo "# dummy file" > prog_split_intern_src
X	echo "# dummy file" > prog_split_extern_src
X	@echo "run \`make check' to show the make bug and than"
X	@echo "run \`make show' to see what make should do"
X
Xclean:
X	-rm prog_main prog_main_obj prog_main_intern_obj \
X	              prog_main_src prog_main_intern_src \
X	    prog_incl prog_incl_obj prog_incl_extern_obj \
X	              prog_incl_src prog_incl_extern_src \
X	    prog_split prog_split_obj prog_split_intern_obj prog_split_extern_obj \
X	               prog_split_src prog_split_intern_src prog_split_extern_src
X
Xshow:
X	@echo "This should be the output:"
X	@echo "# compile -o prog_main_obj prog_main_src"
X	@echo "# compile -o prog_main_intern_obj prog_main_intern_src"
X	@echo "# link -o prog_main prog_main_obj prog_main_intern_obj"
X	@echo "# compile -o prog_incl_obj prog_incl_src"
X	@echo "# compile -o prog_incl_extern_obj prog_incl_extern_src"
X	@echo "# link -o prog_incl prog_incl_obj prog_incl_extern_obj"
X	@echo "# compile -o prog_split_obj prog_split_src"
X	@echo "# compile -o prog_split_intern_obj prog_split_intern_src"
X	@echo "# compile -o prog_split_extern_obj prog_split_extern_src"
X	@echo "# link -o prog_split prog_split_obj prog_split_intern_obj" \
X	      "prog_split_extern_obj"
X
X
X
Xcheck test: prog_main prog_incl prog_split
X
X#include Makefile.included
X
Xprog_main:  prog_main_obj prog_main_intern_obj
X
X# prog_incl:
X
Xprog_split: prog_split_obj prog_split_intern_obj
X
X# rules to see make working
X
X%_obj: %_src
X	@echo "# compile -o $@ $<"
X	@echo timestamp > $@
X
X%: %_obj
X	@echo "# link -o $@ $^"
X	@echo timestamp > $@
X
X
X# --------- end ---------
X
SHAR_EOF
  : || $echo 'restore of' 'Makefile' 'failed'
fi
# ============= Makefile.included ==============
if test -f 'Makefile.included' && test "$first_param" != -c; then
  $echo 'x -' SKIPPING 'Makefile.included' '(file already exists)'
else
  $echo 'x -' extracting 'Makefile.included' '(text)'
  sed 's/^X//' << 'SHAR_EOF' > 'Makefile.included' &&
X
X#
X# Makefile.included
X#
X
Xprog_split: prog_split_extern_obj
X
Xprog_incl:  prog_incl_obj prog_incl_extern_obj
X
X
X# --------- end ---------
X
SHAR_EOF
  : || $echo 'restore of' 'Makefile.included' 'failed'
fi
$echo $shar_n 'x -' 'lock directory' "\`_sh27785': " $shar_c
if rm -fr _sh27785; then
  $echo 'removed'
else
  $echo 'failed to remove'
fi
exit 0
