Skip to content

Instantly share code, notes, and snippets.

@soul9
Created November 21, 2010 13:27
Show Gist options
  • Save soul9/708737 to your computer and use it in GitHub Desktop.
Save soul9/708737 to your computer and use it in GitHub Desktop.
diff --git a/example/Makefile b/example/Makefile
index 05650bc..11255ff 100644
--- a/example/Makefile
+++ b/example/Makefile
@@ -1,13 +1,6 @@
include $(GOROOT)/src/Make.inc
-OBJS := $(patsubst %.go,%.$O,$(wildcard *.go))
-OUT := $(patsubst %.$O,%,$(OBJS))
+TARG=testirc
+GOFILES=test.go
-all: $(OBJS)
-
-%.$O: %.go
- $(GC) $<
- $(LD) -o $(patsubst %.$O,%,$@) $@
-
-clean:
- rm -f *.$O $(OBJS) $(OUT)
+include $(GOROOT)/src/Make.cmd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment