summaryrefslogtreecommitdiff
path: root/rules/maven/Makefile
blob: c22a50a342d9658631230775e77efc74c98349c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
ANT = ant
FIND = find

MODELLO_CLASSPATH := $(shell modello-classpath)
export MODELLO_CLASSPATH
PMDG_CLASSPATH := $(shell plexus-metadata-generator-classpath)
export PMDG_CLASSPATH

%:
	# $@
	bash -i
	false

export M2_HOME=$(DESTDIR)/opt/maven

dep_dir = $1 $(shell $(FIND) $1 2>/dev/null)
dep_optdir = $(shell $(FIND) $1 2>/dev/null)

bootstrap/target/generated-sources: $(call dep_dir,$(wildcard */src/main/mdo))
	$(ANT) -Dskip.pull=true generate-sources

bootstrap/target/classes: $(call dep_dir,bootstrap/target/generated-sources $(wildcard */src/main/java))
	$(ANT) -Dskip.pull=true compile-boot

bootstrap/target/classes/META-INF/plexus/components.xml: \
    $(call dep_dir,maven-compat/src/main/java) \
    $(call dep_dir,maven-core/src/main/resources/META-INF/plexus) \
    bootstrap/target/classes $(shell $(FIND) bootstrap/target/classes -name '*.class' -o -type d)
	$(ANT) -Dskip.pull=true process-classes
.SECONDARY: