Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
8 years ago

Call script before executing make

Is there a way to execute a script before building a project?

I've tried modifying the build command a couple different ways but nothing seems to work:

perl version.pl; make -j

perl ${workspace_loc://gsi_fw}\version.pl; make -j

perl ${PWD}\version.pl; make -j

bash "perl /cygdrive/c/projects/GSI/system/gsi_proc/software/gsi_fw/version.pl"; make -j all

I keep getting 'No such file or directory'

perl C:\projects\GSI\system\gsi_proc\software\gsi_fw\version.pl; make -j all

Can't open perl script "C:\projects\GSI\system\gsi_proc\software\gsi_fw\version.pl;": No such file or directory

Thanks

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    NM I figured it out.

    bash ${workspace_loc://gsi_fw}\custom_build.sh