summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/data/emacs-module/Makefile.in10
1 files changed, 8 insertions, 2 deletions
diff --git a/test/data/emacs-module/Makefile.in b/test/data/emacs-module/Makefile.in
index c284256181e..9963afd5736 100644
--- a/test/data/emacs-module/Makefile.in
+++ b/test/data/emacs-module/Makefile.in
@@ -46,7 +46,13 @@ all: mod-test$(SO)
%$(SO): %.o
$(CC) -shared $(LDFLAGS) -o $@ $<
-%.o: %.c
+%.o: %.c $(top_srcdir)/src/emacs-module.h
$(CC) $(CPPFLAGS) $(ALL_CFLAGS) -c -o $@ $<
-%.o: $(srcdir)/emacs-module.[ch]
+## Stop .o files being deleted.
+.SECONDARY:
+
+.PHONY: clean
+
+clean:
+ rm -f *.o *${SO}