aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/test/depend.sed
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2011-11-11 14:42:29 +0100
committerAnders Svensson <[email protected]>2011-11-11 14:42:29 +0100
commit74c2fa9b2d34ae8d40cc6ea9c2dc4aee2b0cb083 (patch)
tree5d8c29b18a1327531ddab73cbe5befde7bb78069 /lib/diameter/test/depend.sed
parent78dd1afd1521dafcb8ea4e18262f97259a67ee59 (diff)
parent4d3691c921d023fa1afee4d1e3ea9bce64f6f59f (diff)
downloadotp-74c2fa9b2d34ae8d40cc6ea9c2dc4aee2b0cb083.tar.gz
otp-74c2fa9b2d34ae8d40cc6ea9c2dc4aee2b0cb083.tar.bz2
otp-74c2fa9b2d34ae8d40cc6ea9c2dc4aee2b0cb083.zip
Merge branch 'anders/diameter/make/OTP-9638'
* anders/diameter/make/OTP-9638: Fix comment typo Simplify handling of generated hrls in testsuites Minor dependency fix Target cleanup in test/Makefile
Diffstat (limited to 'lib/diameter/test/depend.sed')
-rw-r--r--lib/diameter/test/depend.sed18
1 files changed, 14 insertions, 4 deletions
diff --git a/lib/diameter/test/depend.sed b/lib/diameter/test/depend.sed
index a399eb45f0..95dca44984 100644
--- a/lib/diameter/test/depend.sed
+++ b/lib/diameter/test/depend.sed
@@ -18,14 +18,24 @@
#
#
-# Extract local include dependencies from .erl files. The output is massaged
-# further in Makefile.
+# Extract local include dependencies from an .erl file. The first
+# input line is the module name.
#
-/^-include/!d
+# Store the module name in the hold space.
+1{
+ h
+ d
+}
+
+# Throw away everything but local includes.
/^-include_lib/d
+/^-include/!d
/diameter_gen/d
+/diameter\./d
+# Output a dependency of the beam on the included file.
s@^-include("@@
s@".*@@
-s@^@$(EBIN)/.$(EMULATOR): @
+G
+s@^\(.*\)\n\(.*\)@$(EBIN)/\2.$(EMULATOR): \1@