-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
49 lines (37 loc) · 1.08 KB
/
Makefile
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
NAME = git-insight
PANDOC := $(shell command -v pandoc 2> /dev/null)
ARTIFACT_DIR ?= build
MANSECTION ?= 1
MANPAGE.md = $(PANDOC) --standalone $(PANDOCFLAGS) --to man
MANPAGE = $(ARTIFACT_DIR)/$(NAME).$(MANSECTION)
%.$(MANSECTION): %.$(MANSECTION).md
$(MANPAGE.md) $< -o $@
all: man
pre:
@echo PRE
test -d $(ARTIFACT_DIR) || mkdir -v $(ARTIFACT_DIR)
compress:
tar -czvf ${HOME}/rpmbuild/SOURCES/git-insight-0.0.1.tar.gz ./src
build:
docker build -t avi/fedora . && docker images
# docker run -it --rm -v ${PWD}:/SOURCES/:z avi/fedora bash
run:
docker run -it --rm avi/fedora bash
# ifDev
# man --local-file src/man/git-insight.1
man: pre
ifdef PANDOC
pandoc --standalone --to man src/man/git-insight.1.md -o $(MANPAGE)
else
@echo "pandoc is not installed, skipping manpages generation"
endif
local: man
./entrypoint.sh
pypi:
pyp2rpm termgraph -t fedora --srpm -b 3 -p 3 -d ./pyDEPS
mock -r fedora-35-x86_64 ./pyDEPS/*.src.rpm
tree ./pyDEPS
# Wrote: /builddir/build/RPMS/python3-termgraph-0.5.3-1.fc35.noarch.rpm
# fedora only supports python3 now
clean:
rm -rvf $(MANPAGE) pyDEPS