1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-16 17:19:41 +00:00

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.
This commit is contained in:
Glenn Morris 2017-06-12 16:35:39 -04:00
parent 710ed38912
commit 5f25857f61

View File

@ -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}