diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/Makefile b/Makefile deleted file mode 100644 index 551e0c3..0000000 --- a/Makefile +++ /dev/null @@ -1,30 +0,0 @@ -all: clean update generate - -O_VERSION=1.0.5 -C_VERSION=1.0.6 - -clean: - rm -rf _build/ Build fair-viewer-*.tar.gz MYMETA.{yml,json} - find . -name "*.bs" -delete - find . -name "*.o" -delete - find . -name "*.pm.tdy" -delete - -_ROOT_FILES = $(shell find . -type f \( -iname 'META.json' -o -iname 'META.yml' \)) -_BIN_FILES = $(shell find ./bin -type f \( -iname 'gtk-fair-viewer' -o -iname 'fair-viewer' \)) -_LIB_FILES = $(shell find ./lib/WWW -type f -iname 'FairViewer.pm') - -update: - @sed -i "s|v$(O_VERSION)|v$(C_VERSION)|g" $(_ROOT_FILES) $(_BIN_FILES) - @sed -i "s|$(O_VERSION)|$(C_VERSION)|g" $(_LIB_FILES) - -generate: - @tar -czf fair-viewer-$(C_VERSION).tar.gz --transform "s|^|fair-viewer-$(C_VERSION)/|" --owner 0 --group 0 \ - --exclude '*.bs' \ - --exclude '*.o' \ - --exclude '*.pm.tdy' \ - --exclude '.git' \ - -- \ - bin lib share t \ - Changes LICENSE README.md Artistic-2.0.txt \ - Build.PL Makefile.PL MANIFEST MANIFEST.SKIP \ - META.json META.yml |