8 exec 1>"${MKDIR}/${mkfile}"
14 sed -e 's/^/# /' "${TOPDIR}/LICENSE"
21 cat "${SRCDIR}/default-head.mk"
23 cat "${SRCDIR}/${mkfile}"
25 cat "${SRCDIR}/default-tail.mk"
28 endif # ndef ${mkfile}
38 find "${dir}" -mindepth 1 -maxdepth 1 -and ! -name .gitignore
-print0 |
xargs -0 rm -fr
45 prog
="`basename "${PWD}"`"
58 tmpfile
="`mktemp "/tmp
/${0##*/}-$$.XXXXXX
"`"
59 find .
-name '*.c' -or -iname '*.cpp' -or -iname '*.cxx' -or -iname '*.c++' > "${tmpfile}"
60 head -n -1 < "${tmpfile}" |
sed -e 's/^/\t/;s/$/ \\/'
61 tail -n 1 < "${tmpfile}" |
sed -e 's/^/\t/'
63 for incdir
in .
/include
; do
64 [ -d "${incdir}" ] ||
continue
68 if [ -s "${tmpfile}" ]; then
70 echo "${prog}_INCDIRS= \\"
71 head -n -1 < "${tmpfile}" |
sed -e 's/^/\t/;s/$/ \\/'
72 tail -n 1 < "${tmpfile}" |
sed -e 's/^/\t/'
77 include ${MKDIR}/build.mk
87 TOPDIR
="`dirname "${0}"`"
88 SRCDIR
="${TOPDIR}/src"
95 [ -f Makefile
] || automakefile