Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile103
1 files changed, 92 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index d888cc1..5ada6ba 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-V=20220621
+V=$(shell git describe --exact-match)
BUILDTOOLVER ?= $(V)
PREFIX = /usr/local
@@ -27,6 +27,29 @@ IN_PROGS = \
BINPROGS = \
$(IN_PROGS)
+GENERATED_CONFIGFILES = \
+ pacman-extra-i486.conf \
+ pacman-extra-i686.conf \
+ pacman-extra-pentium4.conf \
+ pacman-testing-i486.conf \
+ pacman-testing-i686.conf \
+ pacman-testing-pentium4.conf \
+ pacman-staging-i486.conf \
+ pacman-staging-i686.conf \
+ pacman-staging-pentium4.conf \
+ pacman-staging-with-build-support-i486.conf \
+ pacman-staging-with-build-support-i686.conf \
+ pacman-staging-with-build-support-pentium4.conf \
+ pacman-kde-unstable-i486.conf \
+ pacman-kde-unstable-i686.conf \
+ pacman-kde-unstable-pentium4.conf \
+ pacman-gnome-unstable-i486.conf \
+ pacman-gnome-unstable-i686.conf \
+ pacman-gnome-unstable-pentium4.conf \
+ makepkg-i486.conf \
+ makepkg-i686.conf \
+ makepkg-pentium4.conf
+
CONFIGFILES = \
makepkg-x86_64.conf \
makepkg-x86_64_v3.conf \
@@ -40,10 +63,12 @@ CONFIGFILES = \
pacman-multilib-testing.conf \
pacman-multilib-staging.conf \
pacman-kde-unstable.conf \
- pacman-gnome-unstable.conf
+ pacman-gnome-unstable.conf \
+ $(GENERATED_CONFIGFILES)
SETARCH_ALIASES = \
- x86_64_v3
+ i486 \
+ pentium4
COMMITPKG_LINKS = \
extrapkg \
@@ -59,16 +84,31 @@ COMMITPKG_LINKS = \
gnome-unstablepkg
ARCHBUILD_LINKS = \
+ extra-i486-build \
+ extra-i686-build \
+ extra-pentium4-build \
extra-x86_64-build \
- extra-x86_64_v3-build \
+ testing-i486-build \
+ testing-i686-build \
+ testing-pentium4-build \
testing-x86_64-build \
- testing-x86_64_v3-build \
+ staging-i486-build \
+ staging-i686-build \
+ staging-pentium4-build \
staging-x86_64-build \
- staging-x86_64_v3-build \
+ staging-with-build-support-i486-build \
+ staging-with-build-support-i686-build \
+ staging-with-build-support-pentium4-build \
multilib-build \
multilib-testing-build \
multilib-staging-build \
+ kde-unstable-i486-build \
+ kde-unstable-i686-build \
+ kde-unstable-pentium4-build \
kde-unstable-x86_64-build \
+ gnome-unstable-i486-build \
+ gnome-unstable-i686-build \
+ gnome-unstable-pentium4-build \
gnome-unstable-x86_64-build
CROSSREPOMOVE_LINKS = \
@@ -97,11 +137,52 @@ MANS = \
doc/devtools.7
-all: $(BINPROGS) bash_completion zsh_completion man
+all: $(GENERATED_CONFIGFILES) $(BINPROGS) bash_completion zsh_completion man
man: $(MANS)
edit = sed -e "s|@pkgdatadir[@]|$(PREFIX)/share/devtools|g"
+makepkg-i486.conf: makepkg-x86_64.conf
+ @echo "GEN $@"
+ @sed " \
+ s,\(["'"'"=]\)x86[-_]64\([-"'"'" ]\),\1i486\2,g; \
+ s,-fcf-protection,,g; \
+ s,LTOFLAGS=".*",LTOFLAGS=\"-fno-lto\",g; \
+ /OPTIONS=/s/ lto/ !lto/; \
+ " "$<" > "$@"
+
+makepkg-i686.conf: makepkg-x86_64.conf
+ @echo "GEN $@"
+ @sed " \
+ s,\(["'"'"=]\)x86[-_]64\([-"'"'" ]\),\1i686\2,g; \
+ s,-fcf-protection,,g; \
+ " "$<" > "$@"
+
+makepkg-pentium4.conf: makepkg-i686.conf
+ @echo "GEN $@"
+ @sed '/^CHOST=/ ! s,\(["=]\)i686\([-" ]\),\1pentium4\2,g' "$<" > "$@"
+
+pacman-%-i486.conf: pacman-%.conf
+ @echo "GEN $@"
+ @sed " \
+ s,/mirrorlist\$$,\032,; \
+ /^Architecture = / s/^.*\$$/Architecture = i486/; \
+ " "$<" > "$@"
+
+pacman-%-i686.conf: pacman-%.conf
+ @echo "GEN $@"
+ @sed " \
+ s,/mirrorlist\$$,\032,; \
+ /^Architecture = / s/^.*$$/Architecture = i686/ \
+ " "$<" > "$@"
+
+pacman-%-pentium4.conf: pacman-%.conf
+ @echo "GEN $@"
+ @sed " \
+ s,/mirrorlist\$$,\032,; \
+ /^Architecture = / s/^.*$$/Architecture = pentium4/ \
+ " "$<" > "$@"
+
%: %.in Makefile lib/common.sh
@echo "GEN $@"
@$(RM) "$@"
@@ -116,7 +197,7 @@ doc/%: doc/%.asciidoc
a2x --no-xmllint --asciidoc-opts="-f doc/asciidoc.conf" -d manpage -f manpage -D doc -a pkgdatadir=$(PREFIX)/share/devtools $<
clean:
- rm -f $(IN_PROGS) bash_completion zsh_completion $(MANS)
+ rm -f $(GENERATED_CONFIGFILES) $(IN_PROGS) bash_completion zsh_completion $(MANS)
install:
install -dm0755 $(DESTDIR)$(PREFIX)/bin
@@ -159,11 +240,11 @@ tag:
@git tag --sign --message "Version $(TODAY)" $(TODAY)
dist:
- git archive --format=tar --prefix=devtools-$(V)/ $(V) | gzip > devtools-$(V).tar.gz
- gpg --detach-sign --use-agent devtools-$(V).tar.gz
+ git archive --format=tar --prefix=devtools32-$(V)/ $(V) | gzip -9 > devtools32-$(V).tar.gz
+ gpg --detach-sign --use-agent devtools32-$(V).tar.gz
upload:
- scp devtools-$(V).tar.gz devtools-$(V).tar.gz.sig repos.archlinux.org:/srv/ftp/other/devtools/
+ scp devtools32-$(V).tar.gz devtools32-$(V).tar.gz.sig sources.archlinux32.org:httpdocs/sources/
check: $(BINPROGS) bash_completion makepkg-x86_64.conf PKGBUILD.proto
shellcheck $^