emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 5f25857: Small improvements for test/data/emacs-mod


From: Glenn Morris
Subject: [Emacs-diffs] master 5f25857: Small improvements for test/data/emacs-module/Makefile
Date: Mon, 12 Jun 2017 16:35:48 -0400 (EDT)

branch: master
commit 5f25857f619f87c59e8e888fde5e66280a185123
Author: Glenn Morris <address@hidden>
Commit: Glenn Morris <address@hidden>

    Small improvements for test/data/emacs-module/Makefile
    
    * test/data/emacs-module/Makefile.in (%.o):
    Fix emacs-module dependency.
    (SECONDARY): Stop make automatically deleting *.o.
    (clean): New rule.
---
 test/data/emacs-module/Makefile.in | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/test/data/emacs-module/Makefile.in 
b/test/data/emacs-module/Makefile.in
index c284256..9963afd 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}



reply via email to

[Prev in Thread] Current Thread [Next in Thread]