diff options
author | jofret | 2009-05-13 09:00:38 +0000 |
---|---|---|
committer | jofret | 2009-05-13 09:00:38 +0000 |
commit | 13e70f4ba368a64c19e260041217b34ccf181066 (patch) | |
tree | 42ab150c158fddb9d00ee2a0f9dd14c1be936ee6 /macros/runsci2c.sci | |
parent | 4edfcc5ea0d6d7d7418e320b04ac2b18421e704b (diff) | |
download | scilab2c-13e70f4ba368a64c19e260041217b34ccf181066.tar.gz scilab2c-13e70f4ba368a64c19e260041217b34ccf181066.tar.bz2 scilab2c-13e70f4ba368a64c19e260041217b34ccf181066.zip |
Makefile generation
Diffstat (limited to 'macros/runsci2c.sci')
-rw-r--r-- | macros/runsci2c.sci | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/macros/runsci2c.sci b/macros/runsci2c.sci index 9356a0b3..f34e4e3d 100644 --- a/macros/runsci2c.sci +++ b/macros/runsci2c.sci @@ -83,6 +83,27 @@ if (RunMode == 'All' | RunMode == 'Translate') end
end
+
+
+// ---------------------------
+// --- Copy library files. ---
+// ---------------------------
+allSources = getAllSources();
+allHeaders = getAllHeaders();
+mkdir(SCI2COutputPath+"/src/");
+mkdir(SCI2COutputPath+"/src/c/");
+mkdir(SCI2COutputPath+"/includes/");
+//pause
+for i = 1:size(allSources, "*")
+ disp("Copying "+allSources(i)+" in "+SCI2COutputPath+"/src/c/");
+ copyfile(allSources(i), SCI2COutputPath+"/src/c/");
+end
+for i = 1:size(allHeaders, "*")
+ disp("Copying "+allHeaders(i)+" in "+SCI2COutputPath+"/includes/");
+ copyfile(allHeaders(i), SCI2COutputPath+"/includes/");
+end
+
+
// --------------------------
// --- Generate Makefile. ---
// --------------------------
|