summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2022-09-23 20:06:21 +0200
committerxengineering <me@xengineering.eu>2022-09-23 20:10:06 +0200
commit4a439a96abb04537152c99d170e84e79ae941ef1 (patch)
treed8636bab4c918bc71ea37d825139593f44c08ade /Makefile
parentae91c75df75678d504fd3d1fd4fdf416df9296dd (diff)
downloadxbackup-4a439a96abb04537152c99d170e84e79ae941ef1.tar
xbackup-4a439a96abb04537152c99d170e84e79ae941ef1.tar.zst
xbackup-4a439a96abb04537152c99d170e84e79ae941ef1.zip
Refactor folder structure
This removes the `install` target. Should be re-introduced later.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 3 insertions, 19 deletions
diff --git a/Makefile b/Makefile
index 6a4c10e..d9dcf55 100644
--- a/Makefile
+++ b/Makefile
@@ -1,29 +1,13 @@
# vim: shiftwidth=4 softtabstop=4 tabstop=4 noexpandtab
-
-DESTDIR="" # leave empty for the current system or provide a fakeroot here
-PREFIX="/usr"
-
-
-.PHONY: all clean install tarball
-
+.PHONY: all clean tarball
all:
- make -C src all
-
+ python setup.py build
clean:
find . -type d -iname '__pycache__' -exec rm -rf {} +;
- make -C src clean
-
-
-install: all
- install -Dm 644 config/default.json $(DESTDIR)/etc/xbackup/config.json
- mkdir -p $(DESTDIR)/var/lib/xbackup/borg
- chown -R root:root $(DESTDIR)/var/lib/xbackup
- chmod -R 700 $(DESTDIR)/var/lib/xbackup
- make -C src install DESTDIR=$(abspath $(DESTDIR))
-
+ rm -rf build
tarball: clean
tar --exclude-vcs -cvf xbackup.tar *