Ticket #318 (new Feature)

Opened 5 years ago

[PATCH] Improve Makefile-MacOS

Reported by: david Owned by: Cyrus Daboo
Priority: minor Milestone: unassigned
Component: Build System Version: v4.0.8
Severity: Other Keywords: patch
Cc: Operating System: Mac OS X
OS Version:

Description

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.

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.

Attachments

Makefile-MacOS-add-init-deps.patch (2.6 KB) - added by david 5 years ago.

Change History

Changed 5 years ago by david

Note: See TracTickets for help on using tickets.