2 # ax-linux: Alex' Linux Tools & Scripts
3 # Copyright (c)2013 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 install -d -o $(USER) -g $(GROUP) -m 755 \
26 $(DESTDIR)/etc/apt/apt.conf.d
27 install -p -o $(USER) -g $(GROUP) -m 644 06btrfs-mksnapshot \
28 $(DESTDIR)/etc/apt/apt.conf.d/06btrfs-mksnapshot
30 06btrfs-mksnapshot: 06btrfs-mksnapshot.tmpl
31 cat 06btrfs-mksnapshot.tmpl | sed -e 's@:PREFIX:@$(PREFIX)@g' \