Skip to content

Commit

Permalink
Fix dist path pollution in dist generation (#9)
Browse files Browse the repository at this point in the history
* Fix tar build

* Simplify by cd to dist directory, and solve zip
  • Loading branch information
cpmachado authored Oct 29, 2024
1 parent 8127700 commit b62b00e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ BUILD_DIR = build
OBJ_DIR = $(BUILD_DIR)/obj
BIN_DIR = $(BUILD_DIR)/bin
DIST_DIR = $(BUILD_DIR)/dist
DIST_BASE_DIR = $(DIST_DIR)/egc-$(VERSION)
DIST_BASE_DIR = egc-$(VERSION)

LIBEGC_SRC_DIR = src/egc
LIBEGC_OBJ_DIR = $(BUILD_DIR)/obj/egc
Expand Down Expand Up @@ -61,9 +61,10 @@ options:


dist:
mkdir -p $(DIST_BASE_DIR)
cp -r $(PKGFILES) $(DIST_BASE_DIR)
tar -cz -f $(DIST_BASE_DIR).tar.gz $(DIST_BASE_DIR)
mkdir -p $(DIST_DIR)/$(DIST_BASE_DIR)
cp -r $(PKGFILES) $(DIST_DIR)/$(DIST_BASE_DIR)
cd $(DIST_DIR); \
tar -cz -f $(DIST_BASE_DIR).tar.gz $(DIST_BASE_DIR); \
zip -r $(DIST_BASE_DIR).zip $(DIST_BASE_DIR)

install: egc
Expand Down

0 comments on commit b62b00e

Please sign in to comment.