aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authormithe24 <mithe24@student.sdu.dk>2025-10-10 15:19:04 +0200
committermithe24 <mithe24@student.sdu.dk>2025-10-29 13:49:57 +0100
commitd6707d11d58a88277016786a29dcd6a471f56f6f (patch)
tree01da21b4fbbffe152dd28ecd01c735448e18b510 /Makefile
parent36ed8ce55da6467986547c8612598f08e21f3154 (diff)
downloadsorter-d6707d11d58a88277016786a29dcd6a471f56f6f.tar.gz
sorter-d6707d11d58a88277016786a29dcd6a471f56f6f.zip
build(Deploy): Added `deploy` target for archiving program in a `.tar.gz`
`make deploy` compresses and adds executable to a `.tar.gz` archive. It also adds `README.md` to `usr/bin/sorter/doc/'
Diffstat (limited to '')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 4a8d66f..2694891 100644
--- a/Makefile
+++ b/Makefile
@@ -19,7 +19,10 @@ $(BUILD_DIR)/%.o: $(SRC_DIR)/%.s
@mkdir -p $(dir $@)
$(AS) $(ASFLAGS) $< -o $@
+deploy: $(TARGET)
+ tar -czvf $(TARGET).tar.gz $(TARGET) README.md
+
clean:
rm -r $(BUILD_DIR) $(TARGET)
-.PHONY: all clean
+.PHONY: all clean deploy