Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'build-aux')
-rwxr-xr-xbuild-aux/gen-make14
1 files changed, 12 insertions, 2 deletions
diff --git a/build-aux/gen-make b/build-aux/gen-make
index b7d0652..87a1df2 100755
--- a/build-aux/gen-make
+++ b/build-aux/gen-make
@@ -75,14 +75,24 @@ until [ $# -eq 0 ]; do (
cd "$path" || exit $?
- deps=$( find -maxdepth 1 -iname '*.dep' )
+ deps=$( find -maxdepth 1 -iname '*.dep' -o -iname '*.typelist' )
+
for dpath in $deps; do
# equivalent to basename command; use this since spawning processes on
# windoze is slow as shit (originally we did find -exec bashename)
d="${dpath##*/}"
+ sansext="${d%.*}"
echo "[gen-make] found $path/$d" >&2
- echo -n "$path/${d%.*}.xmlo:"
+
+ # this might be derived from another file
+ # TODO: handle all cases, not just typelists!
+ if [ -f "$sansext.typelist" ]; then
+ echo "$path/$sansext.xml: $path/$sansext.typelist"
+ fi
+
+ # begin this file's dependencies
+ echo -n "$path/$sansext.xmlo: $path/$sansext.xml "
# output deps
while read dep; do