summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2020-01-15 20:16:48 +0100
committerNiels Möller <nisse@lysator.liu.se>2020-01-15 20:16:48 +0100
commit574272317865c07614706356e7062ca0b30e21c6 (patch)
tree15b968c7847ddf267d501cfe97dbd87c44d51968 /tools
parent0d1b423df26319088f2512b6314f6774132ccb82 (diff)
downloadnettle-574272317865c07614706356e7062ca0b30e21c6.tar.gz
Simplify dependency rules using GNU make -include.
* aclocal.m4 (DEP_INCLUDE): Delete substituted variable. * Makefile.in: Use the GNU make directive -include to include dependency .d files. Delete dependency files on make clean. * examples/Makefile.in: Likewise. * testsuite/Makefile.in: Likewise. Also use $(OBJEXT) properly. * tools/Makefile.in: Likewise. * configure.ac (dummy-dep-files): Delete these config commands.
Diffstat (limited to 'tools')
-rw-r--r--tools/Makefile.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/Makefile.in b/tools/Makefile.in
index e1390f95..eb12a7f6 100644
--- a/tools/Makefile.in
+++ b/tools/Makefile.in
@@ -89,7 +89,7 @@ distdir: $(DISTFILES)
cp $? $(distdir)
clean:
- -rm -f $(TARGETS) *.o
+ -rm -f $(TARGETS) *.$(OBJEXT) *.$(OBJEXT).d
distclean: clean
-rm -f Makefile *.d
@@ -97,4 +97,4 @@ distclean: clean
tags:
etags -o $(srcdir)/TAGS --include $(top_srcdir) $(srcdir)/*.c $(srcdir)/*.h
-@DEP_INCLUDE@ $(SOURCES:.c=.$(OBJEXT).d)
+-include $(SOURCES:.c=.$(OBJEXT).d)