summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 12 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index 8101927..ee71b1f 100644
--- a/Makefile
+++ b/Makefile
@@ -1,21 +1,26 @@
-include config.mk
+include build-system/config.mk
.SILENT: all
all: dist
$(echo) "This is a python project, no compilation at this step required."
$(echo) "Run make install to install global."
$(echo) "Run make install-user to install for the current user."
- $(echo) ""
- $(echo) "If you want to update your installation, use make update."
# you need SOURCE_DATE_EPOCH at least at the 1980s when
-# your default SOURCE_DATE_EPOCH in env is 1.
+# your default SOURCE_DATE_EPOCH in env is 1. More information
+# is found here: https://reproducible-builds.org/docs/source-date-epoch/
+#
.PHONY: dist
-dist:
+dist: gana
$(env) SOURCE_DATE_EPOCH=315532800 $(python) setup.py sdist bdist_wheel
-install: all
- (cd dist; $(env) SOURCE_DATE_EPOCH=315532800 $(python) -m pip install taler-util)
+.PHONY: gana
+gana:
+ cd gana/gnu-taler-error-codes/; make; cp taler_error_codes.py ../../taler/util/; cd ../..
+
+install: gana all
+ (cd dist; $(env) SOURCE_DATE_EPOCH=315532800 $(python) -m pip install --upgrade --no-index --find-links=. taler-util)
+
uninstall:
(cd dist; $(env) SOURCE_DATE_EPOCH=315532800 $(python) -m pip uninstall taler-util)
@@ -26,9 +31,6 @@ install-user:
uninstall-user:
(cd dist; $(env) SOURCE_DATE_EPOCH=315532800 $(python) -m pip uninstall taler-util)
-update:
- (cd dist; $(env) SOURCE_DATE_EPOCH=315532800 $(python) -m pip install --upgrade --no-index --find-links=. taler-util)
-
pypi: dist
$(env) SOURCE_DATE_EPOCH=315532800 $(python) -m twine upload dist/*