chiark / gitweb /
subdirmk/regen.mk.in: Trim `$(srcdir)/' prefix from output makefile names
[subdirmk.git] / subdirmk / regen.mk.in
index 65d75c2..948ef4e 100644 (file)
@@ -38,9 +38,9 @@ main.mk $(MAKEFILES): .makefiles.stamp ;
                $(filter-out Subdir.sd.mk %/Subdir.sd.mk        \
                             %.mk.in                            \
                        , $?),,                                 \
-               $(sort                                          \
+               $(patsubst $(top_srcdir)/%,%, $(sort            \
                        $(patsubst %.sd.mk,%.mk,$(filter %.sd.mk,$?)) \
-                       $(patsubst %.mk.in,%.mk,$(filter %.mk.in,$?))))
+                       $(patsubst %.mk.in,%.mk,$(filter %.mk.in,$?)))))
        touch $@
 
 realclean:: clean