all: clean update generate O_VERSION=1.0.3 C_VERSION=1.0.4 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