/* * ----------------------------------------------------------------- * Execution of this macro requires a license for uni-XEDIT Extended * for each concurrent user of the macro. * ----------------------------------------------------------------- * * * * MK.XEDIT * * MK.XEDIT runs 'make' from within an xedit session. * * 'make' is a Unix command that allows you to maintain, update and * regenerate related programs and files. Refer to your operating * system manuals for more information on the 'make' command. * * Execute the MK.XEDIT macro by typing * * mk * * where is the name of the source file on which to run a * 'make'. The default name is taken from the source file name * which is assumed to be in the form of "name.something". For * example, if you are editing a file named "key.c", the routine * starts "make key". You may also issue "mk else" if you want to * make another target. * * The real work is done in a backround task, and its output is * presented in a separate window. */ parse arg name if name='' /* if name not specified, generate the default */ then do "extract /fname" name=left(fname.1,pos(".",fname.1)-1) end "save" /* make sure the disk file is up to date */ address unix "xemake" name "&" /* kick off the backround task */