summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Nicholson <dbn.lists@gmail.com>2008-05-28 18:39:05 -0700
committerDan Nicholson <dbn.lists@gmail.com>2008-05-28 18:39:05 -0700
commit78d5e1b0c3ee9be8fc71389a57d0637f16b99c97 (patch)
tree9c82a9c33d275db7296693b9095a18f04f9dcdad
parent33d193a4eb5db51c0b6fbda66ed2bdbd564a4015 (diff)
Allow easily recreating test links
Added the target links, which cleans the existing rc links and recreates them as they are originally.
-rw-r--r--test/Makefile.am7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/Makefile.am b/test/Makefile.am
index 2862eee..53853e9 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -42,16 +42,19 @@ testmountfslinks = rcS.d/S10mountfs rc0.d/K90mountfs rc6.d/K90mountfs
testnetworklinks = rc0.d/K80network rc1.d/K80network rc2.d/S20network \
rc3.d/S20network rc4.d/S20network rc5.d/S20network rc6.d/K80network
+links: clean-links $(testlinks)
testlinks = $(testmountfslinks) $(testnetworklinks)
$(TESTS): $(testlinks)
-clean-local:
- -rm -rf $(rctestdirs)
+clean-local: clean-links
-@if test "$(srcdir)" != "$(builddir)"; then \
echo rm -rf init.d; \
rm -rf init.d; \
fi
+clean-links:
+ -rm -rf $(rctestdirs)
+
$(testmountfslinks): init.d/mountfs
@if test ! -f init.d/mountfs; then \
test -d init.d || mkdir init.d 2>/dev/null || :; \