> Yes. The second line should be changed to:
>        $(if $(LIB_FILE),$(if $(filterout $(basename 
> $(LIB_FILE_OS)).bak,$(wildcard $(LIB_DIR)/*.*)),,-...@$(RDP) $(LIB_DIR_OS)),)

Thank you.

>> Also, what clever stunt could we pull to avoid readding 'if exist' rules,
>> which don't work too well in dos shell anyway?
>> [ Adding a second level of clean rule comes to mind, but I don't know
>> how to add it. ]
>
> Not for this case but as total cleanup for all arch you can add
> support for 'mrproper' action.

Hm I'm not sure what that is (read about it recently, but discarded
as non-relevant for Harbour).

Maybe you misunderstood it, the idea isn't to add a second
clean pass on the user level, but rather internally.

So the user says 'clean', than GNU make goes and executes
'clean_file' and 'clean_dir' rules in this order, automatically.
This way the rules could be much cleaner than they are now.

Any good?

Brgds,
Viktor
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to