-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (20 loc) · 746 Bytes
/
Makefile
File metadata and controls
27 lines (20 loc) · 746 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
VERSION := $(shell grep Version: pgcmp.spec | cut -d : -f 2 | sed 's/ //g'| fmt)
PVERSION := pgcmp-$(VERSION)
VDIR := $(ARTIFACT_TARGET)/$(PVERSION)
TARBALL := $(ARTIFACT_TARGET)/$(PVERSION).tar.bz2
.PHONY: docker
ifndef ARTIFACT_TARGET
$(error ARTIFACT_TARGET is not set - this is the directory in which to deploy output artifacts)
endif
all: $(TARBALL)
$(TARBALL): README.html README.org pgcmp pgcmp-dump pgcmp.spec
mkdir -p $(VDIR)
cp README.html README.org pgcmp pgcmp-dump pgcmp.spec $(VDIR)
(cd $(ARTIFACT_TARGET) ; tar cfvj $(TARBALL) $(PVERSION) )
README.html: org-to-html README.org
ruby org-to-html
docker: docker/Dockerfile
docker build --network=host docker -t pg_alpine_rr:latest
clean:
rm -rf $(VDIR)
rm -f $(TARBALL)