- touch $(BIN_DIST_DIR)/Makefile.in
- echo "package = ghc" >> $(BIN_DIST_DIR)/Makefile.in
- echo "version = $(ProjectVersion)" >> $(BIN_DIST_DIR)/Makefile.in
- echo "PACKAGE_SH_SCRIPTS = $(BinDistShScripts)" >> $(BIN_DIST_DIR)/Makefile.in
- echo "PACKAGE_PRL_SCRIPTS = $(BinDistPrlScripts)" >> $(BIN_DIST_DIR)/Makefile.in
- echo "PACKAGE_LIB_PRL_SCRIPTS = $(BinDistLibPrlScripts)" >> $(BIN_DIST_DIR)/Makefile.in
- echo "PACKAGE_LIB_SPLICED_FILES = $(BinDistLibSplicedFiles)" >> $(BIN_DIST_DIR)/Makefile.in
- echo "PACKAGE_BINS = $(BinDistBins)" >> $(BIN_DIST_DIR)/Makefile.in
- echo "PACKAGE_OPT_BINS = $(BinDistOptBins)" >> $(BIN_DIST_DIR)/Makefile.in
- echo "PACKAGE_LINKS = $(BinDistLinks)" >> $(BIN_DIST_DIR)/Makefile.in
- cat $(BIN_DIST_DIR)/Makefile-bin.in >> $(BIN_DIST_DIR)/Makefile.in
+ echo > $(VARFILE)
+ echo "package = ghc" >> $(VARFILE)
+ echo "version = $(ProjectVersion)" >> $(VARFILE)
+ echo "PACKAGE_SH_SCRIPTS = $(BinDistShScripts)" >> $(VARFILE)
+ echo "PACKAGE_PRL_SCRIPTS = $(BinDistPrlScripts)" >> $(VARFILE)
+ echo "PACKAGE_LIB_PRL_SCRIPTS = $(BinDistLibPrlScripts)" >> $(VARFILE)
+ echo "PACKAGE_LIB_SPLICED_FILES = $(BinDistLibSplicedFiles)" >> $(VARFILE)
+ echo "PACKAGE_BINS = $(BinDistBins)" >> $(VARFILE)
+ echo "PACKAGE_OPT_BINS = $(BinDistOptBins)" >> $(VARFILE)
+ echo "PACKAGE_LINKS = $(BinDistLinks)" >> $(VARFILE)
+ cat distrib/Makefile-bin-vars.in >> $(VARFILE)