Skip to content

Commit

Permalink
Add convenient gen_code soft link + update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mario4tier committed Nov 7, 2024
1 parent 15c3894 commit f672d7c
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ autom4te.cache
ar-lib
**/.history/

# Ignore the generated binaries, but keep the bin directory using a dummy HOLDER
# Ignore the generated binaries, but keep the bin soft links.
src/tools/gen_code/gen_code
src/tools/ta_regtest/ta_regtest
bin/*
!bin/HOLDER
!bin/gen_code

## File system
.DS_Store
Expand Down
33 changes: 19 additions & 14 deletions README-DEVS.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,28 @@
# Instructions for TA-Lib maintainers
**You do not need to do any of this if you are only a TA-Lib user.**

# How to generate "./configure" script
Dependencies to install:
- automake
- libtool
- autogen
Development is done on Ubuntu, but the library can still be used on any Linux distribution, Windows and macOS.

On ubuntu, just do the following:
```sudo apt install automake libtool autogen```
## How to generate "./configure" script
Install dependencies:
```$ sudo apt install automake libtool autogen```

... then execute:
Create/update all the "Makefile" related files:
```$ autoreconf -i```

## How to build gen_code
Install dependencies:
```$ sudo apt install mcpp```

Build everything (includes gen_code):
```
$ mkdir -p m4
$ autoreconf -i
$ cd ta-lib
$ ./configure
$ make
```

# How to generate the .tar.gz
Must be in a specific directory to run it:
```
$ cd ta-lib/bin
$ ./gen_code
```
$ ./configure
$ make dist
```
1 change: 1 addition & 0 deletions bin/gen_code

0 comments on commit f672d7c

Please sign in to comment.