Correctly declare variables in post build?
Posted: Thu Jan 09, 2014 1:50 pm
I’m trying to copy some files after build by using the post build step in project settings. I would like to declare a variable so I don’t have to repeat the same thing over and over again.
What I tried so far and can’t get this to work:
What I tried so far and can’t get this to work:
- TARGET_PATH=./pathpart1/pathpart2
cp –f lib.a $TARGET_PATH
cp –f lib.dll $TARGET_PATH
- tries to copy lib.a and lib.dll to ARGET_PATH
- TARGET_PATH:=./pathpart1/pathpart2
cp –f lib.a $(TARGET_PATH)
cp –f lib.dll $(TARGET_PATH)
- says that ./pathpart1/pathpart2 directory does not exist even though running and echoing pwd outputs the path to the dir where ./pathpart1/pathpart2 exists.
- cp –f lib.a ./pathpart1/pathpart2
cp –f lib.dll ./pathpart1/pathpart2 <- same path repeated