Source

nlopt-ocaml / Makefile

Diff from to
+# OASIS_START
+# DO NOT EDIT (digest: bc1e05bfc8b39b664f29dae8dbd3ebbb)
 
-all:	build
+SETUP = ocaml setup.ml
 
-install:	build
-	$(MAKE) -C src install
+build: setup.data
+	$(SETUP) -build $(BUILDFLAGS)
 
-build:	
-	$(MAKE) -C src
+doc: setup.data build
+	$(SETUP) -doc $(DOCFLAGS)
 
+test: setup.data build
+	$(SETUP) -test $(TESTFLAGS)
 
-clean:	
-	$(MAKE) -C src clean
-	$(MAKE) -C examples clean
+all: 
+	$(SETUP) -all $(ALLFLAGS)
 
-doc:
-	$(MAKE) -C src doc
+install: setup.data
+	$(SETUP) -install $(INSTALLFLAGS)
+
+uninstall: setup.data
+	$(SETUP) -uninstall $(UNINSTALLFLAGS)
+
+reinstall: setup.data
+	$(SETUP) -reinstall $(REINSTALLFLAGS)
+
+clean: 
+	$(SETUP) -clean $(CLEANFLAGS)
+
+distclean: 
+	$(SETUP) -distclean $(DISTCLEANFLAGS)
+
+setup.data:
+	$(SETUP) -configure $(CONFIGUREFLAGS)
+
+.PHONY: build doc test all install uninstall reinstall clean distclean configure
+
+# OASIS_STOP