diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..499d340 --- /dev/null +++ b/Makefile @@ -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 diff --git a/README.md b/README.md index 4383ac2..b46d4ae 100644 --- a/README.md +++ b/README.md @@ -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