diff options
| author | mithe24 <mithe24@student.sdu.dk> | 2025-10-10 15:19:04 +0200 |
|---|---|---|
| committer | mithe24 <mithe24@student.sdu.dk> | 2025-10-29 13:49:57 +0100 |
| commit | d6707d11d58a88277016786a29dcd6a471f56f6f (patch) | |
| tree | 01da21b4fbbffe152dd28ecd01c735448e18b510 /Makefile | |
| parent | 36ed8ce55da6467986547c8612598f08e21f3154 (diff) | |
| download | sorter-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-- | Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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
|