mkdir testioc
cd testioc/
makeBaseApp.pl -t ioc foo
makeBaseApp.pl -t ioc -i -a linux-x86_64 -p foo foo
make --question
echo $? # should return !=0 (IOC needs to be compiled)
make
make --question
echo $? # should return 0 (nothing to do)
Unfortunately the 2nd "make --question" call still returns 1. Also note that genVersionHeader.pl doesn't seem to be called at all (not sure why). Am I missing something?
I have implemented the changes Michael suggested. See https:/ /code.launchpad .net/~info- martin- konrad/ epics-base/ +git/epics- base/+ref/ fix-make- question- mode. With these changes in place Andrew's $(COMMON_DIR) changes shouldn't be needed.
I'm having some problems testing this. I tried
mkdir testioc
cd testioc/
makeBaseApp.pl -t ioc foo
makeBaseApp.pl -t ioc -i -a linux-x86_64 -p foo foo
make --question
echo $? # should return !=0 (IOC needs to be compiled)
make
make --question
echo $? # should return 0 (nothing to do)
Unfortunately the 2nd "make --question" call still returns 1. Also note that genVersionHeader.pl doesn't seem to be called at all (not sure why). Am I missing something?