From 78d5e1b0c3ee9be8fc71389a57d0637f16b99c97 Mon Sep 17 00:00:00 2001 From: Dan Nicholson Date: Wed, 28 May 2008 18:39:05 -0700 Subject: Allow easily recreating test links Added the target links, which cleans the existing rc links and recreates them as they are originally. --- test/Makefile.am | 7 +++++-- 1 file 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 || :; \ -- cgit v1.2.3