7 SCRIPTS
= bin
/* hooks
/* scripts
/live scripts
/live-functions scripts
/live-helpers scripts
/*/*
12 @echo
-n
"Checking for syntax errors"
14 @for SCRIPT in
$(SCRIPTS
); \
22 @echo
-n
"Checking for bashisms"
24 @
# We can't just fail yet on bashisms (FIXME)
25 @if
[ -x
/usr
/bin
/checkbashisms
]; \
27 for SCRIPT in
$(SCRIPTS
); \
29 checkbashisms
-f
-x
$${SCRIPT} || true
; \
33 echo
"WARNING: skipping bashism test - you need to install devscripts."; \
39 @echo
"Nothing to build."
42 # Installing executables
43 mkdir
-p
$(DESTDIR
)/sbin
44 cp bin
/live-new-uuid bin
/live-snapshot bin
/live-swapfile
$(DESTDIR
)/sbin
46 mkdir
-p
$(DESTDIR
)/usr
/share
/live-boot
47 cp bin
/live-preseed bin
/live-reconfigure contrib
/languagelist
$(DESTDIR
)/usr
/share
/live-boot
49 mkdir
-p
$(DESTDIR
)/usr
/share
/initramfs-tools
50 cp
-r hooks scripts
$(DESTDIR
)/usr
/share
/initramfs-tools
53 mkdir
-p
$(DESTDIR
)/usr
/share
/doc
/live-boot
54 cp
-r COPYING docs
/* $(DESTDIR
)/usr
/share
/doc
/live-boot
56 mkdir
-p
$(DESTDIR
)/usr
/share
/doc
/live-boot
/examples
57 cp
-r conf
/* $(DESTDIR
)/usr
/share
/doc
/live-boot
/examples
61 for MANPAGE in manpages
/en
/*; \
63 SECTION
="$$(basename $${MANPAGE} | awk -F. '{ print $$2 }')"; \
64 install -D
-m
0644 $${MANPAGE} $(DESTDIR
)/usr
/share
/man
/man
$${SECTION}/$$(basename $${MANPAGE}); \
67 for LANGUAGE in
$(LANGUAGES
); \
69 for MANPAGE in manpages
/$${LANGUAGE}/*; \
71 SECTION
="$$(basename $${MANPAGE} | awk -F. '{ print $$3 }')"; \
72 install -D
-m
0644 $${MANPAGE} $(DESTDIR
)/usr
/share
/man
/$${LANGUAGE}/man
$${SECTION}/$$(basename $${MANPAGE} .
$${LANGUAGE}.
$${SECTION}).
$${SECTION}; \
77 # Uninstalling executables
78 rm -f
$(DESTDIR
)/sbin
/live-snapshot
$(DESTDIR
)/sbin
/live-swapfile
79 rm -rf
$(DESTDIR
)/usr
/share
/live-boot
80 rm -f
$(DESTDIR
)/usr
/share
/initramfs-tools
/hooks
/live
81 rm -rf
$(DESTDIR
)/usr
/share
/initramfs-tools
/scripts
/live
*
82 rm -f
$(DESTDIR
)/usr
/share
/initramfs-tools
/scripts
/local-top
/live
85 rm -rf
$(DESTDIR
)/usr
/share
/doc
/live-boot
88 # Uninstalling manpages
89 for MANPAGE in manpages
/en
/*; \
91 SECTION
="$$(basename $${MANPAGE} | awk -F. '{ print $$2 }')"; \
92 rm -f
$(DESTDIR
)/usr
/share
/man
/man
$${SECTION}/$$(basename $${MANPAGE} .en.
$${SECTION}).
$${SECTION}; \
95 for LANGUAGE in
$(LANGUAGES
); \
97 for MANPAGE in manpages
/$${LANGUAGE}/*; \
99 SECTION
="$$(basename $${MANPAGE} | awk -F. '{ print $$3 }')"; \
100 rm -f
$(DESTDIR
)/usr
/share
/man
/$${LANGUAGE}/man
$${SECTION}/$$(basename $${MANPAGE} .
$${LANGUAGE}.
$${SECTION}).
$${SECTION}; \
108 reinstall
: uninstall install