Ticket #318 (new Feature)
Opened 5 years ago
[PATCH] Improve Makefile-MacOS
|Reported by:||david||Owned by:||Cyrus Daboo|
|Cc:||Operating System:||Mac OS X|
I'm attaching a patch that does a few things to Makefile-MacOS:
- It uses real files as dependencies so that you can "make init" and it will only do the necessary stuff once (further "make init"s will do nothing).
- Because of that, I moved the "all: init build" line up to the top so you can run make with no arguments.
- It creates a symlink from Mulberry/Makefile?-MacOS to ./Makefile so that:
a) you can just type "make" to build
b) the makefile is automatically upgraded when you "svn update" in the Mulberry dir.
I kept all the old target names there in case there is some attachment to them.
The only bad part is that if you have an existing directory you will have to:
touch .patches-applied touch Libraries/.stamp touch Libraries/*
Otherwise it will try to re-download and patch everything.
Something to improve is the patch handling. I think it could be beneficial to redo the python script in pure Makefile to take advantage of make's dependency resolution. That way if a new patch gets downloaded through "svn update" then it can be automatically applied on the next "make" without having to reapply all the existing patches.