Separate compile and JAR rules and synchronise with a "flag" target. This is to allow (parallelisable) rules to be written for including resources in JARs.