diff --git a/Makefile b/Makefile index a1e6c47..f42382d 100644 --- a/Makefile +++ b/Makefile @@ -56,8 +56,7 @@ benchmark_talib: benchmark.c libindicators.a #This will build all of Tulip Indicators into one .c file. #This is recommended to be used with other bindings for ease of build. tiamalgamation.c: $(AMAL) indicators.ca indicators.h candles.ca candles.h - echo -e "/*\n * TULIP INDICATORS AMALGAMATION\n * This is all of Tulip Indicators in one file.\n * To get the original sources, go to https://tulipindicators.org\n */\n\n" \ - | cat - indicators.h candles.h utils/buffer.h utils/localbuffer.h utils/minmax.h $(AMAL) indicators.ca candles.ca > $@ + cat templates/amal.txt indicators.h candles.h utils/buffer.h utils/localbuffer.h utils/minmax.h $(AMAL) indicators.ca candles.ca > $@ $(OBJS): indicators.h candles.h diff --git a/README.md b/README.md index cbae1ff..98f2d98 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ and the header file `indicators.h` to use Tulip Indicators in your code. If you don't want to build the library, you can simply add the `tiamalgamation.c` file to your project, along with `indicators.h` and -candles.h`. The amalgamation file contains all of Tulip Indicators - you don't +`candles.h`. The amalgamation file contains all of Tulip Indicators - you don't actually need any of the other source files. This is the recommended method to import Tulip Indicators into code for diff --git a/candles.c b/candles.c index 0c29084..aa2502b 100644 --- a/candles.c +++ b/candles.c @@ -27,7 +27,7 @@ /* * * Version 0.9.1 - * Header Build 1642468960 + * Header Build 1642469817 * */ diff --git a/candles.h b/candles.h index dc0fa0c..033201e 100644 --- a/candles.h +++ b/candles.h @@ -30,7 +30,7 @@ /* * * Version 0.9.1 - * Header Build 1642468960 + * Header Build 1642469817 * */ @@ -44,7 +44,7 @@ #define TC_VERSION "0.9.1" -#define TC_BUILD 1642468960 +#define TC_BUILD 1642469817 diff --git a/indicators.c b/indicators.c index cb5a8a4..97e58f9 100644 --- a/indicators.c +++ b/indicators.c @@ -27,7 +27,7 @@ /* * * Version 0.9.1 - * Header Build 1642468960 + * Header Build 1642469817 * */ diff --git a/indicators.h b/indicators.h index 5a0d971..f614df4 100644 --- a/indicators.h +++ b/indicators.h @@ -30,7 +30,7 @@ /* * * Version 0.9.1 - * Header Build 1642468960 + * Header Build 1642469817 * */ @@ -44,7 +44,7 @@ #define TI_VERSION "0.9.1" -#define TI_BUILD 1642468960 +#define TI_BUILD 1642469817 diff --git a/templates/amal.txt b/templates/amal.txt new file mode 100644 index 0000000..a6028c9 --- /dev/null +++ b/templates/amal.txt @@ -0,0 +1,7 @@ +/* + * TULIP INDICATORS AMALGAMATION + * This is all of Tulip Indicators in one file. + * To get the original sources, go to https://tulipindicators.org + */ + + diff --git a/tiamalgamation.c b/tiamalgamation.c index bf18620..09c9494 100644 --- a/tiamalgamation.c +++ b/tiamalgamation.c @@ -37,7 +37,7 @@ /* * * Version 0.9.1 - * Header Build 1642468960 + * Header Build 1642469817 * */ @@ -51,7 +51,7 @@ #define TI_VERSION "0.9.1" -#define TI_BUILD 1642468960 +#define TI_BUILD 1642469817 @@ -1146,7 +1146,7 @@ int ti_zlema(int size, TI_REAL const *const *inputs, TI_REAL const *options, TI_ /* * * Version 0.9.1 - * Header Build 1642468960 + * Header Build 1642469817 * */ @@ -1160,7 +1160,7 @@ int ti_zlema(int size, TI_REAL const *const *inputs, TI_REAL const *options, TI_ #define TC_VERSION "0.9.1" -#define TC_BUILD 1642468960 +#define TC_BUILD 1642469817