From 375977e73347c2eeb0d5199ddf16c1125652eead Mon Sep 17 00:00:00 2001 From: Charles Comstock Date: Thu, 24 Oct 2013 20:36:25 -0500 Subject: Strip remainder of require line to avoid comments If you don't match the remainder of the line it only transforms the section that matches, so; cider.el: (require 'cider-foo) ;comment Becomes the following line in .depends cider.el: cider-foo.elc ; comment When we want it to be cider.el: cider-foo.elc --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 5cd5f39e..91d50316 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ OBJECTS = $(ELS:.el=.elc) @echo Compute dependencies @rm -f .depend @for f in $(ELS); do \ - sed -n "s/(require '\(\(cider\|nrepl\)-.*\))/$${f}c: \1.elc/p" $$f >> .depend;\ + sed -n "s/(require '\(\(cider\|nrepl\)-.*\)).*$$/$${f}c: \1.elc/p" $$f >> .depend;\ done -include .depend -- cgit v1.2.3