From f235a9069fdf7d371e48cf85beecbf980b204bda Mon Sep 17 00:00:00 2001 From: Jordan Sissel Date: Wed, 4 Aug 2021 09:19:20 -0700 Subject: [PATCH] Make create-package not a single long line of shell --- Makefile | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 4c6564d..c28dfcc 100644 --- a/Makefile +++ b/Makefile @@ -206,14 +206,13 @@ VERSION: sh version.sh --shell > $@ .PHONY: create-package +create-package: NAME=xdotool-$(VERSION) create-package: xdo_version.h libxdo.pc - @NAME=xdotool-$(VERSION); \ - echo "Creating package: $$NAME"; \ - mkdir $${NAME}; \ - rsync --exclude '.*' -a `ls -d *.pod COPYRIGHT *.c *.h *.pc examples t CHANGELIST README.md Makefile* version.sh platform.sh cflags.sh VERSION Doxyfile 2> /dev/null` $${NAME}/; \ - tar -zcf $${NAME}.tar.gz $${NAME}/; \ - rm -r $${NAME} - rm VERSION + echo "Creating package: $(NAME)" + mkdir "$(NAME)" + rsync --exclude '.*' -a `ls -d *.pod COPYRIGHT *.c *.h *.pc examples t CHANGELIST README.md Makefile* version.sh platform.sh cflags.sh VERSION Doxyfile 2> /dev/null` "$(NAME)/" + tar -zcf "$(NAME).tar.gz" "$(NAME)" + rm -r "$(NAME)" # Make sure the package we're building compiles. .PHONY: test-package-build