X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=utils%2FMakefile;h=82eec81756cb63d17266d0578d7c98d99209e12e;hb=f893fb935d23418b80534b05f35fe50d54af0acc;hp=73685d85dd392e5afb82578274e0e6de9427fe56;hpb=387814833d11f1de4e175d8583c56ab1ebc69021;p=ghc-hetmet.git diff --git a/utils/Makefile b/utils/Makefile index 73685d8..82eec81 100644 --- a/utils/Makefile +++ b/utils/Makefile @@ -65,6 +65,8 @@ endif # sort removes duplicates - we don't actually care about the order WITH_EITHER = $(sort $(WITH_BOOTSTRAPPING_COMPILER) $(WITH_STAGE1)) +clean:: $(foreach P,$(WITH_EITHER),clean.$P) + with-bootstrapping-compiler: \ $(foreach P,$(WITH_BOOTSTRAPPING_COMPILER),with-bootstrapping-compiler.$P) @@ -72,6 +74,10 @@ with-stage-1: $(foreach P,$(WITH_STAGE1),with-stage-1.$P) install:: $(foreach P,$(WITH_STAGE1),install.$P) +$(foreach P,$(WITH_EITHER),clean.$P): \ +clean.%: + $(MAKE) -C $* clean + $(foreach P,$(WITH_BOOTSTRAPPING_COMPILER),with-bootstrapping-compiler.$P): \ with-bootstrapping-compiler.%: $(MAKE) -C $* with-bootstrapping-compiler