1. Shlomi Fish
  2. dylan-programs

Commits

Shlomi Fish  committed 63a17b0

Refactored the makefile.

  • Participants
  • Parent commits 55ae649
  • Branches default

Comments (0)

Files changed (3)

File dylan-programs/hello/Makefile

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

File dylan-programs/hello/hello-world.dylan

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

File dylan-programs/hello/hello.dylan

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