Commits

Shlomi Fish committed 63a17b0

Refactored the makefile.

Comments (0)

Files changed (3)

dylan-programs/hello/Makefile

-all: doors hello-world
+PROGS = doors hello-world
 
-doors: doors.dylan
+all: $(PROGS)
+
+$(PROGS): %: %.dylan
 	d2c -o $@ $<
-
-hello-world: hello.dylan
-	d2c -o $@ $<
-

dylan-programs/hello/hello-world.dylan

+module: hello-world
+ 
+format-out("%s\n", "Goodbye, World!");

dylan-programs/hello/hello.dylan

-module: hello-world
- 
-format-out("%s\n", "Goodbye, World!");