shithub: MicroHs

Download patch

ref: d879d78f4a1999bc50cd8f9b40fe2084bbe348ac
parent: 318f879c65b8515e6463cae692f6fd9d8293a4b2
author: Lennart Augustsson <lennart.augustsson@epicgames.com>
date: Mon Nov 27 12:14:45 EST 2023

Refactor

--- a/Makefile
+++ b/Makefile
@@ -48,14 +48,14 @@
 	@mkdir -p generated
 	bin/mhs -ilib -isrc MicroHs.Main -ogenerated/mhs.c
 
+ghcgen:	bin/gmhs src/*/*.hs lib/*.hs lib/*/*.hs lib/*/*/*.hs
+	bin/gmhs -ilib -isrc MicroHs.Main -ogenerated/mhs.c
+
 # Make sure boottrapping works
 bootstrap:	bin/mhs-stage2
 	@echo "*** copy stage2 to bin/mhs"
 	cp bin/mhs-stage2 bin/mhs
 	cp generated/mhs-stage2.c generated/mhs.c 
-
-ghcgen:	bin/gmhs src/*/*.hs lib/*.hs lib/*/*.hs lib/*/*/*.hs
-	bin/gmhs -ilib -isrc MicroHs.Main -ogenerated/mhs.c
 
 # Build stage1 compiler with existing compiler
 bin/mhs-stage1:	bin/mhs src/*/*.hs
--