-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile.am
77 lines (62 loc) · 2.81 KB
/
Makefile.am
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
AUTOMAKE_OPTIONS = subdir-objects
SUBDIRS = src
# Help make tarballs more reproducible.
export TAR_OPTIONS = --owner=0 --group=0 --numeric-owner
# Only attempt to build the documentation when PDFLATEX is available.
if HAVE_PDFLATEX
SUBDIRS += doc
endif
EXTRA_DIST = \
LICENSE \
MANIFEST.in \
README.md \
etc/djehuty.service \
etc/djehuty/djehuty-example-config.xml \
guix.scm \
requirements.txt \
setup.py \
pyproject.toml \
main.py \
tests/admin_panel.py \
tests/create_article.py \
tests/create_collection.py \
tests/depositor_panel.py \
tests/run_backup.py \
tests/ui_pages.py \
tests/validators.py
dist-rpm: dist
mkdir -p rpmbuild/{BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS}
rm -f rpmbuild/SOURCES/*
ln -s $(abs_top_srcdir)/djehuty-@VERSION@.tar.gz rpmbuild/SOURCES/djehuty-@VERSION@.tar.gz
rpmbuild --define "_topdir $(abs_top_srcdir)/rpmbuild" -ba $(abs_top_srcdir)/rpmbuild/SPECS/djehuty.spec
dist-docker: dist
guix pack -C gzip -e '(load "guix.scm")' \
--with-source=djehuty-$(VERSION).tar.gz \
--format=docker --entry-point=/bin/djehuty \
-S /bin=bin -S /lib=lib -S /share=share -S /etc=etc -S /var=var \
glibc-locales tzdata coreutils net-base bash virtuoso-ose
dist-pypi:
@python -m build
source-dist:
@PYTHON@ setup.py sdist --formats=gztar --owner=root --group=root
binary-dist:
@PYTHON@ setup.py bdist --formats=gztar --owner=root --group=root
all-local:
@PYTHON@ setup.py build --build-base $(shell readlink -f $(builddir))/build
install-exec-local:
@PYTHON@ setup.py install \
--prefix $(DESTDIR)$(prefix) \
--single-version-externally-managed \
--record $(DESTDIR)$(pkgpythondir)/install_files.txt
uninstall-local:
cat $(DESTDIR)$(pkgpythondir)/install_files.txt | xargs rm -rf
rm -rf $(DESTDIR)$(pkgpythondir)
lint:
@pylint src/djehuty/* > pylint.log || true
@printf "Wrote 'pylint.log'.\n"
coverity-report:
@cov-build --dir cov-int --no-command --fs-capture-search .
publish-pypi: dist-pypi
@python -m twine upload --repository pypi dist/djehuty-@VERSION@.tar.gz dist/djehuty-@VERSION@-py3-none-any.whl
publish-test-pypi: dist-pypi
@python -m twine upload --repository testpypi dist/djehuty-@VERSION@.tar.gz dist/djehuty-@VERSION@-py3-none-any.whl