Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Gerwitz <mike.gerwitz@rtspecialty.com>2018-05-07 15:13:14 -0400
committerMike Gerwitz <mike.gerwitz@rtspecialty.com>2018-05-07 16:22:18 -0400
commit5cce3a6eeb34219a3b698cd7dd7b6cf231507501 (patch)
tree120b67f7364d94243f535fb517ed5077b1361a15 /build-aux
parent34844a650a5fcc454a8dab5b9a0dba88a72bc01f (diff)
downloadtame-5cce3a6eeb34219a3b698cd7dd7b6cf231507501.tar.gz
tame-5cce3a6eeb34219a3b698cd7dd7b6cf231507501.tar.bz2
tame-5cce3a6eeb34219a3b698cd7dd7b6cf231507501.zip
[DEV-3115] gen-make: Account for typelist
This needs to be generalized, but will do for now. * build-aux/gen-make: Recognize typelists as dependencies. Always include source XML file as a dependency.
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