X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=utils%2Fpwd%2FMakefile;fp=utils%2Fpwd%2FMakefile;h=c753ae889f1d806a4677695fa4a59c593465b324;hb=3e2748164e3e2e2dc21ca511959671f0f5f2e37f;hp=f8fea4542a2b74b55b9c6dc30164f946c95966d4;hpb=82dc0d197b39b6462d1a19e4c556f7acdf376ee9;p=ghc-hetmet.git diff --git a/utils/pwd/Makefile b/utils/pwd/Makefile index f8fea45..c753ae8 100644 --- a/utils/pwd/Makefile +++ b/utils/pwd/Makefile @@ -1,7 +1,13 @@ TOP=../.. include $(TOP)/mk/boilerplate.mk -HS_PROG=pwd +# We have two version: the inplace version compiled by the bootstrap compiler +# and the install version compiled by the stage 1 compiler +ifeq "$(stage)" "2" +HS_PROG = pwd +else +HS_PROG = pwd-inplace +endif binary-dist: $(INSTALL_DIR) $(BIN_DIST_DIR)/utils/pwd