Added Makefile

This commit is contained in:
Willi Mutschler
2020-05-07 10:52:11 +02:00
parent fdca1c0926
commit 29de9728d2
2 changed files with 9 additions and 6 deletions

8
Makefile Normal file
View File

@@ -0,0 +1,8 @@
PKGNAME ?= timeshift-autosnap-apt
.PHONY: install
install:
@install -Dm644 -t "$(DESTDIR)/etc/apt/apt.conf.d/" 80-timeshift-autosnap-apt
@install -Dm755 -t "$(DESTDIR)/usr/bin/" timeshift-autosnap-apt
@install -Dm644 -t "$(LIB_DIR)/etc/" timeshift-autosnap-apt.conf

View File

@@ -30,12 +30,7 @@ Clone this repository and run the following commands to copy the hook, bash scri
```bash
git clone https://github.com/wmutschl/timeshift-autosnap-apt.git
cd timeshift-autosnap-apt
sudo cp 80-timeshift-autosnap-apt /etc/apt/apt.conf.d/80-timeshift-autosnap-apt
sudo chmod 644 /etc/apt/apt.conf.d/80-timeshift-autosnap-apt
sudo cp timeshift-autosnap-apt /usr/bin/timeshift-autosnap-apt
sudo chmod 755 /usr/bin/timeshift-autosnap-apt
sudo cp timeshift-autosnap-apt.conf /etc/timeshift-autosnap-apt.conf
sudo chmod 644 /etc/timeshift-autosnap-apt.conf
sudo make install
```
After this, optionally, make changes to the configuration file:
```bash