Re: custom install targets

"Scott Henry Harrison" <harris41-mhe/[email protected]> Thu, 15 Jan 2004 12:01:31 -0500
Newsgroups gmane.comp.tools.aap.devel
Message-ID <[email protected]>
>> Right, you also need to manually do something for uninstalling then.
>> It's very similar:  
>> 
>> 	uninstall-local:
>> 	   :del $CUSTOM1DIR/$*INSTALL_CUSTOM1  
>> 
> I agree.  The syntax as you have it is simple enough

But does not appear to work... 

 --begin main.aap--
INSTALL_DIAGNOSTICSCRIPT += 
$(SOURCEPREFIX)system_dependencies/tests/mysql_requirements.pl
DIAGNOSTICSCRIPTDIR = /tmp/ 

uninstall-local :
 :del $DIAGNOSTICSCRIPTDIR/$*INSTALL_DIAGNOSTICSCRIPT
 :print Deinstallation completed 

install-local :
 :copy $INSTALL_DIAGNOSTICSCRIPT $DIAGNOSTICSCRIPTDIR
 :print Installation completed
 --end main.aap-- 

[[email protected] build]$ aap uninstall
Aap: Error in recipe "/home/sharrison/svn/repos/trunk/build/main.aap" line 
37: No such file or directory: 
"/tmp//../system_dependencies/tests/mysql_requirements.pl" 

Thus, the error is that the leading filesystem paths need to be
removed. 

Blindly removing the directory is not an option for me
(only remove the directory if it is empty and non-essential). 

Now, should this involve some form of python custom-fix,
or do you know of any built-in A-A-P solution? 

Thanks so much for your help. 

Regards,
Scott 





-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn