Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve Makefile #65

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Mar 8, 2021

  1. improve Makefile

    Here are a list of the improvements done to the Makefile.
    
    1. allow tests to be built and run individually from the command-line:
    
    Examples of building individual tests:
    ```
    make bin/test1
    make bin/test2
    ...
    ```
    
    Running individual tests:
    ```sh
    make test1
    make test2
    make test_compile
    make test_rand
    make test_rand_neg
    
    # note: you can still run all the tests with
    make test
    ```
    
    2. Because building and running the tests are now in their own rules, the user can run them in parallel now:
    
    Build everything in parallel with 5 threads:
    ```
    make -j5
    ```
    
    Build and run everything with 5 threads:
    ```
    make -j5 test
    ```
    
    3. Moved all outputs to the "bin" directory
    
    This simplifies the code in the "clean" target to 1 command. It also simplifies the .gitignore file and make it easy for developers to distinguish between output files and source files.
    
    4. Added re.c as a dependency to all the tests
    
    Now if the user modifies re.c, all the tests will be see that they need to be rebuilt.
    marler8997 committed Mar 8, 2021
    Configuration menu
    Copy the full SHA
    2acc41d View commit details
    Browse the repository at this point in the history