File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 11ARCHS := x86_64 arm aarch64 powerpc
22TARGETS := $(addprefix build-, $(ARCHS ) )
3+ PACK_TARGETS := $(addprefix pack-, $(ARCHS ) )
34
4- .PHONY : clean help download_packages build patch-gdb build-docker-image $(TARGETS )
5+ .PHONY : clean help download_packages build patch-gdb build-docker-image $(TARGETS ) $( PACK_TARGETS )
56
67help :
78 @echo " Usage:"
@@ -47,6 +48,13 @@ $(TARGETS): build-%: download-packages patch-gdb build-docker-image
4748 --rm --volume .:/app/gdb gdb-static env TERM=xterm-256color \
4849 /app/gdb/src/build.sh $* /app/gdb/build/ /app/gdb/src/gdb_static.patch
4950
51+ pack : $(PACK_TARGETS )
52+
53+ $(PACK_TARGETS ) : pack-% : build-%
54+ if [ ! -f " build/artifacts/gdb-static-$* .tar.gz" ]; then \
55+ tar -czf " build/artifacts/gdb-static-$* .tar.gz" -C " build/artifacts/$* " . ; \
56+ fi
57+
5058clean :
5159 rm -rf build
5260# Kill and remove all containers of image gdb-static
You can’t perform that action at this time.
0 commit comments