forked from zq1997/deepin-wine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
33 lines (23 loc) · 739 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
REPO ?= repo
BUILD ?= build
.PHONY: all netlify always_redo
all: $(REPO)/Release $(REPO)/setup.sh $(REPO)/index.html
netlify:
wget http://archive.ubuntu.com/ubuntu/pool/main/a/apt/apt-utils_2.0.2_amd64.deb
dpkg-deb -x apt-utils_*.deb packages
env PATH=$${PATH}:packages/usr/bin $(MAKE) -j all
echo '/https/* https://:splat 301!' > $(REPO)/_redirects
%/:
mkdir -p $@
$(REPO)/Packages: always_redo | $(REPO)/ $(BUILD)/
python3 make.py
%.gz: %
gzip -kn9f $<
%.xz: %
xz -k9f $<
$(REPO)/Release: $(REPO)/Packages.gz $(REPO)/Packages.xz
apt-ftparchive release -o APT::FTPArchive::Release::Label=deepin-wine $(REPO) >$@
$(REPO)/setup.sh: setup.sh | $(REPO)/
cp $< $@
$(REPO)/index.html: $(REPO)/Packages
python3 make_html.py