summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-06-25 20:27:21 +0200
committerThomas Voss <mail@thomasvoss.com> 2023-06-25 20:27:21 +0200
commit71cab3986b9eb02c7b250a395701faae4b5c6b86 (patch)
tree677b8f7d3f888fa438d168a43945cace789ba8f4
parentfa5347b18f9bf028d97b02163cbf0e7cba369640 (diff)
Improve Makefile
-rw-r--r--Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index e917176..ca084fe 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,10 @@
-all:
- go build server.go
- ${CC} -O3 bilingual_sort.c -o bilingual_sort
+all: bilingual_sort server
+
+bilingual_sort: bilingual_sort.c
+ ${CC} -O3 -o $@ $<
+
+server: server.go
+ go build $<
clean:
rm -f bilingual_sort server