2 # ax-linux: Alex' Linux Tools & Scripts
3 # Copyright (c)2013-2014 Alexander Barton (alex@barton.de)
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
11 ALL = btrfs-mksnapshot btrfs-mksnapshot-rootfs 06btrfs-mksnapshot
13 include ../../Makefile.ax
16 rm -f 06btrfs-mksnapshot
19 install -d -o $(USER) -g $(GROUP) -m 755 \
20 $(DESTDIR)$(PREFIX)/sbin
21 install -p -o $(USER) -g $(GROUP) -m 755 btrfs-mksnapshot \
22 $(DESTDIR)$(PREFIX)/sbin/btrfs-mksnapshot
23 install -p -o $(USER) -g $(GROUP) -m 755 btrfs-mksnapshot-rootfs \
24 $(DESTDIR)$(PREFIX)/sbin/btrfs-mksnapshot-rootfs
25 test -w /etc/apt/apt.conf.d \
26 && make PREFIX= install-local-apt \
27 || make PREFIX=$(PREFIX) install-local-apt
30 install -d -o $(USER) -g $(GROUP) -m 755 \
31 $(DESTDIR)$(PREFIX)/etc/apt/apt.conf.d
32 install -p -o $(USER) -g $(GROUP) -m 644 06btrfs-mksnapshot \
33 $(DESTDIR)$(PREFIX)/etc/apt/apt.conf.d/06btrfs-mksnapshot
35 06btrfs-mksnapshot: 06btrfs-mksnapshot.tmpl
36 cat 06btrfs-mksnapshot.tmpl | sed -e 's@:PREFIX:@$(PREFIX)@g' \