"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "docs/Makefile" between
fpm-1.13.1.tar.gz and fpm-1.14.0.tar.gz

About: fpm tries to make it easy and quick to build packages such as rpms, debs, OSX packages, etc.

Makefile  (fpm-1.13.1):Makefile  (fpm-1.14.0)
include Makefile.sphinx include Makefile.sphinx
IMAGE=fpm-sphinx IMAGE=fpm-sphinx
WORKDIR=./.work WORKDIR=./.work
GITROOT=$(shell git rev-parse --show-toplevel) GITROOT=$(shell git rev-parse --show-toplevel)
GITREMOTE=$(shell git remote -v | awk '/(push)/ {print $$2}') GITREMOTE=$(shell git remote -v | awk '/(push)/ {print $$2}')
GENERATED_FILES=cli-reference.rst changelog_links.rst
$(WORKDIR): $(WORKDIR):
mkdir $(WORKDIR) mkdir $(WORKDIR)
# A task to generate reST syntax for issue links mentioned in CHANGELOG.rst # A task to generate reST syntax for issue links mentioned in CHANGELOG.rst
changelog_links.rst: ../CHANGELOG.rst Makefile changelog_links.rst: ../CHANGELOG.rst Makefile
grep -Eo '#[0-9]+' $< \ grep -Eo '#[0-9]+' $< \
| tr -d '#' \ | tr -d '#' \
| awk '{printf ".. _#%s: https://github.com/jordansissel/fpm/issu es/%s\n", $$1, $$1 }' \ | awk '{printf ".. _#%s: https://github.com/jordansissel/fpm/issu es/%s\n", $$1, $$1 }' \
| sort -u > $@ | sort -u > $@
# CLI reference is generated based on the the command line flags
cli-reference.rst: generate-cli-reference.rb Makefile
cli-reference.rst: ../lib/fpm/package/*.rb ../lib/fpm/package.rb
ruby generate-cli-reference.rb > $@
package-type-cli:
$(MAKE) $(addprefix packages/cli/,$(addsuffix .rst,$(notdir $(basename $(
wildcard ../lib/fpm/package/*.rb)))))
packages/cli:
mkdir $@
packages/cli/%.rst: ../lib/fpm/package/%.rb packages/cli
ruby generate-cli-reference.rb $* > $@
.PHONY: docker-prep .PHONY: docker-prep
docker-prep: Dockerfile docker-prep: Dockerfile
@docker images fpm-sphinx | grep -q '^fpm-sphinx ' \ @docker images fpm-sphinx | grep -q '^fpm-sphinx ' \
|| docker build -t $(IMAGE) . || docker build -t $(IMAGE) .
.PHONY: build .PHONY: build
build: changelog_links.rst | docker-prep build: $(GENERATED_FILES) | docker-prep
docker run -it -v $$PWD/../:/project:z $(IMAGE) sh -xc 'make -C /project/ docs html && chown -R 1000:1000 /project/docs' docker run -it -v $$PWD/../:/project:z $(IMAGE) sh -xc 'make -C /project/ docs html && chown -R 1000:1000 /project/docs'
.PHONY: build
view: $(GENERATED_FILES) | docker-prep
docker run -p 127.0.0.1:8000:8000 -it -v $$PWD/../:/project:z $(IMAGE) sh
-xc 'make -C /project/docs livehtml'
 End of changes. 4 change blocks. 
1 lines changed or deleted 18 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)