48 lines
1.3 KiB
Makefile
48 lines
1.3 KiB
Makefile
all: install
|
|
|
|
install:
|
|
install -Dm644 settings.sh /etc/restic_backup/settings.sh
|
|
install -Dm755 restic_backup /usr/local/bin/restic_backup
|
|
install -Dm644 restic_backup.timer /etc/systemd/system/restic_backup.timer
|
|
install -Dm644 restic_backup.service /etc/systemd/system/restic_backup.service
|
|
systemctl daemon-reload
|
|
systemctl enable restic_backup.timer
|
|
|
|
uninstall:
|
|
systemctl disable restic_backup.timer
|
|
rm -v /etc/restic_backup/settings.sh
|
|
rm -v /usr/local/bin/restic_backup
|
|
rm -v /etc/systemd/system/restic_backup.timer
|
|
rm -v /etc/systemd/system/restic_backup.service
|
|
systemctl daemon-reload
|
|
|
|
html:
|
|
pandoc \
|
|
--from=markdown \
|
|
--to=html \
|
|
README.md \
|
|
--standalone \
|
|
--output=README.html \
|
|
--variable document-css=true \
|
|
--variable linkcolor='[HTML]{0000ff}' \
|
|
--metadata lang=ru \
|
|
--metadata title=''
|
|
|
|
pdf:
|
|
pandoc \
|
|
--from=markdown-implicit_figures \
|
|
--to=pdf \
|
|
README.md \
|
|
--output=README.pdf \
|
|
--pdf-engine=xelatex \
|
|
--variable mainfont='FreeSans' \
|
|
--variable monofont='FreeMono' \
|
|
--variable fontsize='12pt' \
|
|
--variable monofontoptions='Scale=0.9' \
|
|
--variable urlcolor='[HTML]{0000ff}' \
|
|
--variable pagestyle=empty \
|
|
--variable margin-left='20mm' \
|
|
--variable margin-right='20mm' \
|
|
--variable margin-top='20mm' \
|
|
--variable margin-bottom='20mm' \
|
|
--highlight-style haddock
|