Commits

ccorrodi committed 1fd8e8c

add "all", "all-byte", and "all-native" targets

  • Participants
  • Parent commits 7649981
  • Branches develop

Comments (0)

Files changed (1)

 
 default: lib-native
 
+all: all-byte all-native run-tests doc
+all-byte: lib-byte main-byte test-byte
+all-native: lib-native main-native test-native
+
 lib-byte:
-	$(LIBBUILD) $(LIBFLAGS) src/ocamlmake.cma
+	$(LIBBUILD) src/ocamlmake.cma
 	cp -f $(OBJDIR)/src/ocamlmake.cma $(BINDIR)/ocamlmake.cma
 
 lib-native:
-	$(LIBBUILD) $(LIBFLAGS) src/ocamlmake.cmxa
+	$(LIBBUILD) src/ocamlmake.cmxa
 	cp -f $(OBJDIR)/src/ocamlmake.cmxa $(BINDIR)/ocamlmake.cmxa
 
 main-byte:
-	$(BUILD) $(LIBFLAGS) src/main.byte
+	$(BUILD) src/main.byte
 	cp -f $(OBJDIR)/src/main.byte $(BINDIR)/main
 
 main-native:
-	$(BUILD) $(LIBFLAGS) src/main.native
+	$(BUILD) src/main.native
 	cp -f $(OBJDIR)/src/main.native $(BINDIR)/main
 
 test-byte: BUILD += $(TESTFLAGS)
 test-byte:
-	$(BUILD) $(LIBFLAGS) test/unitTests.byte
+	$(BUILD) test/unitTests.byte
 	cp -f $(OBJDIR)/test/unitTests.byte $(BINDIR)/test
 
 test-native: BUILD += $(TESTFLAGS)
 test-native:
-	$(BUILD) $(LIBFLAGS) test/unitTests.native
+	$(BUILD) test/unitTests.native
 	cp -f $(OBJDIR)/test/unitTests.native $(BINDIR)/test
 
 run-tests: test-native
 	./bin/test
 
 doc:
-	$(BUILD) $(LIBFLAGS) project.docdir/index.html
+	$(BUILD) project.docdir/index.html
 
 clean:
 	rm -f $(BINDIR)/ocamlmake.cma