Do not expect Windows-specific project files
This commit is contained in:
parent
6620062bc8
commit
09b64bf730
@ -2740,25 +2740,23 @@ static int _dist_install(Makefile * makefile,
|
|||||||
char const * directory, char const * mode,
|
char const * directory, char const * mode,
|
||||||
char const * filename)
|
char const * filename)
|
||||||
{
|
{
|
||||||
char sep = (configure_get_os(makefile->configure) != HO_WIN32)
|
|
||||||
? '/' : '\\';
|
|
||||||
String * p;
|
String * p;
|
||||||
char const * q;
|
char const * q;
|
||||||
|
|
||||||
if(strchr(filename, sep) != NULL)
|
if(strchr(filename, '/') != NULL)
|
||||||
{
|
{
|
||||||
if((p = string_new(filename)) == NULL)
|
if((p = string_new(filename)) == NULL)
|
||||||
return -1;
|
return -1;
|
||||||
q = dirname(p);
|
q = dirname(p);
|
||||||
/* FIXME keep track of the directories created */
|
/* TODO keep track of the directories created */
|
||||||
_makefile_print(makefile, "%s%s%c%s\n", "\t$(MKDIR) $(DESTDIR)",
|
_makefile_print(makefile, "%s%s/%s\n", "\t$(MKDIR) $(DESTDIR)",
|
||||||
directory, sep, q);
|
directory, q);
|
||||||
string_delete(p);
|
string_delete(p);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
_makefile_mkdir(makefile, directory);
|
_makefile_mkdir(makefile, directory);
|
||||||
_makefile_print(makefile, "%s%s%s%s%s%s%c%s\n", "\t$(INSTALL) -m ",
|
_makefile_print(makefile, "%s%s%s%s%s%s/%s\n", "\t$(INSTALL) -m ",
|
||||||
mode, " ", filename, " $(DESTDIR)", directory, sep,
|
mode, " ", filename, " $(DESTDIR)", directory,
|
||||||
filename);
|
filename);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user