Skip to content

Commit

Permalink
Populate errorlevel from the top level Makefile (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v authored Nov 11, 2020
1 parent 7fe9c7c commit a61d5e1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
.vagrant
_obj
Dockerfile
.status.*
26 changes: 16 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,20 +1,26 @@
TARGETS=go1.10 go1.11 go1.12 go1.13 go1.14

build: status=".status.build"
build:
@echo '0' > ${status}
@$(foreach var,$(TARGETS), \
$(MAKE) -C $(var) $@; \
$(MAKE) -C $(var) -f Makefile.debian7 $@; \
$(MAKE) -C $(var) -f Makefile.debian8 $@; \
$(MAKE) -C $(var) -f Makefile.debian9 $@;)
@make -C fpm $@
$(MAKE) -C $(var) $@ || echo '1' > ${status}; \
$(MAKE) -C $(var) -f Makefile.debian7 $@ || echo '1' > ${status}; \
$(MAKE) -C $(var) -f Makefile.debian8 $@ || echo '1' > ${status}; \
$(MAKE) -C $(var) -f Makefile.debian9 $@ || echo '1' > ${status};)
@make -C fpm $@ || echo '1' > ${status}
exit $$(cat ${status})

# Requires login at https://docker.elastic.co:7000/.
push: status=".status.push"
push:
@echo '0' > ${status}
@$(foreach var,$(TARGETS), \
$(MAKE) -C $(var) $@; \
$(MAKE) -C $(var) -f Makefile.debian7 $@; \
$(MAKE) -C $(var) -f Makefile.debian8 $@; \
$(MAKE) -C $(var) -f Makefile.debian9 $@;)
@make -C fpm $@
$(MAKE) -C $(var) $@ || echo '1' > ${status}; \
$(MAKE) -C $(var) -f Makefile.debian7 $@ || echo '1' > ${status}; \
$(MAKE) -C $(var) -f Makefile.debian8 $@ || echo '1' > ${status}; \
$(MAKE) -C $(var) -f Makefile.debian9 $@ || echo '1' > ${status};)
@make -C fpm $@ || echo '1' > ${status}
exit $$(cat ${status})

.PHONY: build push

0 comments on commit a61d5e1

Please sign in to comment.