diff --git a/.gitignore b/.gitignore index 5ee9cb408..842523651 100644 --- a/.gitignore +++ b/.gitignore @@ -117,7 +117,7 @@ buck-out/ /infer/annotations/annot_classes/ /infer/annotations/annotations.jar -/infer/annotations/processor_classes/ +/infer/annotations/annotations-src.jar infer/src/.project /dependencies/ocamldot/ocamldot /dependencies/ocamldot/ocamldot.ml diff --git a/infer/annotations/Makefile b/infer/annotations/Makefile index 970b2adb7..61135f6e4 100644 --- a/infer/annotations/Makefile +++ b/infer/annotations/Makefile @@ -14,14 +14,19 @@ ANNOT_SOURCES = $(shell find com/facebook/infer/annotation -name "*.java") ANNOT_CLASSES = 'annot_classes' ANNOTATIONS_JAR = $(CWD)/annotations.jar +SOURCES_JAR = $(CWD)/annotations-src.jar -all: $(ANNOTATIONS_JAR) +all: $(ANNOTATIONS_JAR) $(SOURCES_JAR) $(ANNOTATIONS_JAR): $(ANNOT_SOURCES) mkdir -p $(ANNOT_CLASSES) javac -source 7 -target 7 -cp $(JSR_JAR) $(ANNOT_SOURCES) -d $(ANNOT_CLASSES) cd $(ANNOT_CLASSES) && jar cvf $(ANNOTATIONS_JAR) com +$(SOURCES_JAR): $(ANNOT_SOURCES) + jar cvf $(SOURCES_JAR) com + clean: @rm -rf $(ANNOT_CLASSES) @rm -f $(ANNOTATIONS_JAR) + @rm -f $(SOURCES_JAR)