| @@ -1,26 +1,27 @@ | | | @@ -1,26 +1,27 @@ |
1 | # $NetBSD: uac-manifest.mk,v 1.1 2013/02/10 13:04:08 obache Exp $ | | 1 | # $NetBSD: uac-manifest.mk,v 1.2 2013/08/31 20:54:07 rillig Exp $ |
| | | 2 | # |
| | | 3 | # This file generates manifest files for Windows. |
2 | # | | 4 | # |
3 | # This file generate manifest files for Windows. | | | |
4 | # For Windows Vista or later, executable files including special keywords | | 5 | # For Windows Vista or later, executable files including special keywords |
5 | # (install, update, patch, and so on) in its name are expected as requireing | | 6 | # (install, update, patch, and so on) in its name are expected to require |
6 | # privileged permissions by default (UAC). | | 7 | # privileged permissions by default (UAC). If not, it must be specified |
7 | # If not, it must be specified with manifest file, or it will be failed to | | 8 | # with a manifest file, or it will fail to execute with a "Permission |
8 | # execute as "Permission denied". | | 9 | # denied" error message. |
9 | # | | 10 | # |
10 | # Package-settable variables: | | 11 | # Package-settable variables: |
11 | # | | 12 | # |
12 | # UAC_REQD_EXECS | | 13 | # UAC_REQD_EXECS |
13 | # A list of files requireing manifest file for UAC. | | 14 | # A list of files requiring manifest file for UAC. |
14 | # Paths are relative to PREFIX. | | 15 | # Paths are relative to PREFIX. |
15 | # | | 16 | # |
16 | # Default value: not defined | | 17 | # Default value: not defined |
17 | # | | 18 | # |
18 | | | 19 | |
19 | GENERATE_PLIST+= ${UAC_MANIFEST_GENERATE_PLIST} | | 20 | GENERATE_PLIST+= ${UAC_MANIFEST_GENERATE_PLIST} |
20 | UAC_MANIFEST_GENERATE_PLIST= \ | | 21 | UAC_MANIFEST_GENERATE_PLIST= \ |
21 | ${ECHO} "@comment The following lines are automatically generated." && \ | | 22 | ${ECHO} "@comment The following lines are automatically generated." && \ |
22 | ( cd ${DESTDIR}${PREFIX}; \ | | 23 | ( cd ${DESTDIR}${PREFIX}; \ |
23 | for file in ${UAC_REQD_EXECS}; do \ | | 24 | for file in ${UAC_REQD_EXECS}; do \ |
24 | ${TEST} $${file} -ef $${file}.exe && file=$${file}.exe; \ | | 25 | ${TEST} $${file} -ef $${file}.exe && file=$${file}.exe; \ |
25 | ${ECHO} $${file}.manifest; \ | | 26 | ${ECHO} $${file}.manifest; \ |
26 | done) | | 27 | done) |