summaryrefslogtreecommitdiff
path: root/GNU/gcc/gcc-13.2.0/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'GNU/gcc/gcc-13.2.0/Makefile')
-rw-r--r--GNU/gcc/gcc-13.2.0/Makefile37
1 files changed, 37 insertions, 0 deletions
diff --git a/GNU/gcc/gcc-13.2.0/Makefile b/GNU/gcc/gcc-13.2.0/Makefile
new file mode 100644
index 0000000..2ea8fb1
--- /dev/null
+++ b/GNU/gcc/gcc-13.2.0/Makefile
@@ -0,0 +1,37 @@
+#
+# https://gcc.gnu.org
+#
+# You can use the generic url https://ftpmirror.gnu.org
+# to automatically choose a nearby and up-to-date mirror.
+#
+# original url: https://ftp.gnu.org/gnu/gcc/gcc-$(version)
+#
+
+url = https://ftp.gnu.org/gnu/gcc
+
+versions = 13.2.0
+
+pkgname = gcc
+suffix = tar.xz
+
+tarballs = $(addsuffix .$(suffix), $(addprefix $(pkgname)-, $(versions)))
+sha1s = $(addsuffix .sha1sum, $(tarballs))
+
+all: $(tarballs) $(sha1s)
+
+.PHONY: downloads_clean
+
+$(tarballs):
+ @echo -e "\n======= Downloading source tarballs =======\n"
+ @for version in $(versions) ; do \
+ wget -N $(url)/gcc-$$version/gcc-$$version.$(suffix) ; \
+ done
+
+$(sha1s): %.$(suffix).sha1sum : %.$(suffix)
+ @for tarball in $< ; do \
+ echo -e "\n======= Calculation '$$tarball' sha1sum =======\n" ; \
+ sha1sum --binary $$tarball > $$tarball.sha1sum ; \
+ done
+
+downloads_clean:
+ @rm -rf $(tarballs) $(sha1s)