Skip to content

Commit 07f8dd8

Browse files
committed
Refactor the build process [2/2].
Everything is now working correctly under the new topology
1 parent e0cb91d commit 07f8dd8

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
build/work
22
out/*
3+
stage/*

Makefile

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
MODVERSION := $(shell sed -n 's/version=\(.*\)/\1/p' zsh_arm64/module.prop)
22
MOD := zsh_arm64
3+
STAGE := stage
34
ZIP := $(MOD)-$(MODVERSION).zip
45
#ZIP := $(MOD)-$(MODVERSION)-$(shell date +%m-%d).zip
56

@@ -12,7 +13,6 @@ ZSHVERSION := 5.7
1213
SRCDIR=zsh-$(ZSHVERSION)
1314
SRCURL := https://sourceforge.net/projects/zsh/files/zsh/$(ZSHVERSION)/zsh-$(ZSHVERSION).tar.xz/download
1415
ARCHIVE := $(SRCDIR).tar.xz
15-
STAGE := stage
1616

1717
CURDIR := $(shell pwd)
1818
PROCS := $(shell nproc)
@@ -60,29 +60,29 @@ build/work/$(SRCDIR)/Makefile: build/work/$(ARCHIVE)
6060
--sbindir=/system/xbin \
6161
--sysconfdir=/system/etc
6262

63-
# --disable-runhelpdir \
6463

6564
build/work/$(SRCDIR)/Src/zsh: build/work/$(SRCDIR)/Makefile $(DEPS)
6665
cd $(CURDIR)/build/work/$(SRCDIR); \
6766
make -j$(PROCS)
6867

6968

70-
$(STAGE)/%: build/work/$(SRCDIR)/Src/zsh
69+
$(STAGE)/system/xbin/zsh: build/work/$(SRCDIR)/Src/zsh
7170
cd $(CURDIR)/build/work/$(SRCDIR); \
7271
make install DESTDIR=$(CURDIR)/$(STAGE); \
7372
chmod 755 $(CURDIR)/$(STAGE)/system/xbin/*
7473

75-
$(STAGE)/%: $(MOD)/%
74+
$(STAGE)/%: $(MOD)/%
7675
mkdir -p $(@D)
77-
cp $< $@
76+
cp -v $? $@
7877

79-
out/$(ZIP): $(STAGE)/%
78+
out/$(ZIP): $(STAGEDEPS) $(STAGE)/system/xbin/zsh
8079
cd $(STAGE); \
8180
rm -rf system/usr/share/man; \
82-
rm system/xbin/zsh-* system/xbin/zsh.old; \
83-
sed -i "s/version=.*/version=$(MODVERSION)/" module.prop; \
84-
sed -i "s/versionCode=.*/versionCode=$(VCODE)/" module.prop; \
85-
zip -r ../out/$(ZIP) $(notdir $(wildcard $(STAGE)/*))
81+
rm -f system/xbin/zsh-* system/xbin/zsh.old; \
82+
zip -qr ../out/$(ZIP) $(notdir $(wildcard $(STAGE)/*))
83+
84+
#sed -i "s/version=.*/version=$(MODVERSION)/" module.prop; \
85+
#sed -i "s/versionCode=.*/versionCode=$(VCODE)/" module.prop; \
8686
8787
clean:
8888
rm -rf build/work/*

0 commit comments

Comments
 (0)