summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorLuke Shumaker <luke@HP-dv6426us-u904.(none)>2009-10-25 14:11:26 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-06-26 00:30:17 -0600
commitd946d850217edead9748082ac4be8d874d81e6e8 (patch)
tree3d3e1fc5f377ea56e515085e3953351ebd6c3b09 /Makefile.in
parent37438e6cb8566eba8a97c90fcb0b3784c5bb40cc (diff)
hmm. I kind of screwed up rvs plugins.
Worst, it was just a command I typed wrong that crippled a few files
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in14
1 files changed, 13 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in
index c8af005..3eecd0c 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -63,6 +63,18 @@ $(dirs) :
$(DESTDIR)$(bindir)/% : % $(DESTDIR)$(bindir)
$(INSTALL_PROGRAM) $< $@
-Makefile : $(srcdir)/configure
+Makefile %.mk : $(srcdir)/configure
$<
+# This is taken straight from the GNU `make' manual.
+# That makes it GFDL, which is incompatible with the GPL
+# I claim `fair-use'
+ %.d: %.c
+ @set -e; rm -f $@; \
+ $(CC) -M $(CPPFLAGS) $< > $@.$$$$; \
+ sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
+ rm -f $@.$$$$
+
+sources = $(filter %.c,$(filelist))
+include $(sources:.c=.d)
+