-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
33 lines (32 loc) · 2.24 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
PREFIX = usr/local/
install:
install -Dm 755 mount_image.sh "$(DESTDIR)/$(PREFIX)/bin/mount_image.sh"
install -Dm 755 shrinkwrap_image.sh "$(DESTDIR)/$(PREFIX)/bin/shrinkwrap_image.sh"
install -Dm 755 init_image.sh "$(DESTDIR)/$(PREFIX)/bin/init_image.sh"
install -Dm 755 gen_cloud_template.sh "$(DESTDIR)/$(PREFIX)/bin/gen_cloud_template.sh"
install -Dm 755 autorun/init.arch.sh "$(DESTDIR)/usr/share/disk-image-scripts/init.arch.sh"
install -Dm 755 autorun/init.debian.sh "$(DESTDIR)/usr/share/disk-image-scripts/init.debian.sh"
install -Dm 644 misc/debian-syslinux.cfg "$(DESTDIR)/usr/share/disk-image-scripts/debian-syslinux.cfg"
install -Dm 644 bash_completion/mount_image.bash "$(DESTDIR)/usr/share/bash-completion/completions/mount_image.sh"
install -Dm 644 bash_completion/gen_cloud_template.bash "$(DESTDIR)/usr/share/bash-completion/completions/gen_cloud_template.sh"
install -Dm 644 man/init_image.1 "$(DESTDIR)/$(PREFIX)/share/man/man1/init_image.1"
install -Dm 644 man/shrink_wrap.1 "$(DESTDIR)/$(PREFIX)/share/man/man1/shrink_wrap.1"
install -Dm 644 man/mount_image.1 "$(DESTDIR)/$(PREFIX)/share/man/man1/mount_image.1"
install -Dm 644 man/gen_cloud_template.1 "$(DESTDIR)/$(PREFIX)/share/man/man1/gen_cloud_template.1"
install -Dm 644 man/template_rc.5 "$(DESTDIR)/$(PREFIX)/share/man/man5/template_rc.5"
install -Dm 644 "docs/template.rc format spec.md" "$(DESTDIR)/usr/share/disk-image-scripts/docs/template.rc_format_spec.md"
cp -ra default_template "$(DESTDIR)/usr/share/disk-image-scripts/default_template"
remove:
rm "$(DESTDIR)/$(PREFIX)/bin/mount_image.sh"
rm "$(DESTDIR)/$(PREFIX)/bin/shrinkwrap_image.sh"
rm "$(DESTDIR)/$(PREFIX)/bin/init_image.sh"
rm "$(DESTDIR)/$(PREFIX)/bin/gen_cloud_template.sh"
rm "$(DESTDIR)/usr/share/disk-image-scripts/init.arch.sh"
rm "$(DESTDIR)/$(PREFIX)/share/man/man1/init_image.1"
rm "$(DESTDIR)/$(PREFIX)/share/man/man1/shrink_wrap.1"
rm "$(DESTDIR)/$(PREFIX)/share/man/man1/mount_image.1"
rm "$(DESTDIR)/$(PREFIX)/share/man/man1/gen_cloud_template.1"
rm "$(DESTDIR)/$(PREFIX)/share/man/man5/template_rc.5"
rm "$(DESTDIR)/usr/share/bash-completion/completions/mount_image.sh"
rm "$(DESTDIR)/usr/share/bash-completion/completions/gen_cloud_template.sh"
rm -rf "$(DESTDIR)/usr/share/disk-image-scripts/"