Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Commit [d09707] Maximize Restore History

rc2 default makefiles

odaba-support odaba-support 2011-06-27

changed Makefile.run
changed VERSION
changed share
changed share/odaba
changed share/odaba/proc
changed share/odaba/proc/projects
changed share/odaba/proc/projects/ode
changed share/odaba/proc/projects/ode/otool.sh.in
copied Makefile -> Makefile.default
Makefile.run Diff Switch to side-by-side view
Loading...
VERSION Diff Switch to side-by-side view
Loading...
share
Directory.
share/odaba
Directory.
share/odaba/proc
Directory.
share/odaba/proc/projects/ode/otool.sh.in Diff Switch to side-by-side view
Loading...
Makefile to Makefile.default
--- a/Makefile
+++ b/Makefile.default
@@ -2,35 +2,37 @@
 # only exists for production in linux and will always be overwritten on update
 ODABA_DIR ?= $(shell pwd)
 PLATFORM ?= $(shell uname -s)-$(shell uname -m)
+ODABA_INSTALL_DIR ?= $(ODABA_DIR)
 ODABA_BUILD_DIR ?= $(ODABA_DIR)/var/tmp/build-$(PLATFORM)
+ODABA_SRC_DIR ?= $(ODABA_DIR)/src
 PROJECT_DIR ?= $(shell pwd | sed 's|$(ODABA_DIR)||')
+CFLAGS=-O0 -g3 -Wall
+CXXFLAGS=-O0 -g3 -Wall
 
-.PHONY: all check clean dist distclean install uninstall reconf
+PHONY: reconf all check clean dist distclean install uninstall
 
-all check clean install uninstall dist distclean reconf:
-	mkdir -p $(ODABA_BUILD_DIR)$(PROJECT_DIR) \
-	&& cp -arL ./autotools $(ODABA_BUILD_DIR)$(PROJECT_DIR) \
-	&& cp -arL ./etc $(ODABA_BUILD_DIR)$(PROJECT_DIR) \
-	&& cp -arL ./share $(ODABA_BUILD_DIR)$(PROJECT_DIR) \
-	&& mkdir -p $(ODABA_BUILD_DIR)$(PROJECT_DIR)/var \
-	&& mkdir -p $(ODABA_BUILD_DIR)$(PROJECT_DIR)/var/log/odaba \
-	&& cp -arL ./var/Makefile.am $(ODABA_BUILD_DIR)$(PROJECT_DIR)/var \
-	&& cp -arL ./var/lib $(ODABA_BUILD_DIR)$(PROJECT_DIR)/var \
-	&& cp -arL ./var/log/odaba/Makefile.am $(ODABA_BUILD_DIR)$(PROJECT_DIR)/var/log/odaba \
-	&& cp -arL ./src $(ODABA_BUILD_DIR)$(PROJECT_DIR) \
-	&& cp ChangeLog $(ODABA_BUILD_DIR)$(PROJECT_DIR) \
-	&& cp CHANGES $(ODABA_BUILD_DIR)$(PROJECT_DIR) \
-	&& cp configure.ac $(ODABA_BUILD_DIR)$(PROJECT_DIR) \
-	&& cp COPYING $(ODABA_BUILD_DIR)$(PROJECT_DIR) \
-	&& cp INSTALL $(ODABA_BUILD_DIR)$(PROJECT_DIR) \
-	&& cp Makefile $(ODABA_BUILD_DIR)$(PROJECT_DIR) \
-	&& cp Makefile.am $(ODABA_BUILD_DIR)$(PROJECT_DIR) \
-	&& cp Makefile.run $(ODABA_BUILD_DIR)$(PROJECT_DIR) \
-	&& cp NEWS $(ODABA_BUILD_DIR)$(PROJECT_DIR) \
-	&& cp README $(ODABA_BUILD_DIR)$(PROJECT_DIR) \
-	&& cp VERSION $(ODABA_BUILD_DIR)$(PROJECT_DIR) \
-	&& cp AUTHORS $(ODABA_BUILD_DIR)$(PROJECT_DIR) \
-	&& cp odaba.pc.in $(ODABA_BUILD_DIR)$(PROJECT_DIR) \
-	&& mv $(ODABA_BUILD_DIR)$(PROJECT_DIR)/Makefile.run \
-	    $(ODABA_BUILD_DIR)$(PROJECT_DIR)/Makefile
-	cd $(ODABA_BUILD_DIR)$(PROJECT_DIR) && $(MAKE) $@
+all check clean dist distclean install uninstall: Makefile
+	$(MAKE) $@
+
+reconf: config.status
+	./config.status --recheck
+
+Makefile config.status newconf: configure Makefile
+	   CXXFLAGS="$(CXXFLAGS)" ./configure \
+	  --prefix=/data/sys/odaba-$(shell cat VERSION) \
+	  --exec_prefix=/data/sys/odaba-$(shell cat VERSION)
+
+configure: configure.ac Makefile.am
+	autoreconf -if
+	echo sos
+	cd $(ODABA_SRC_DIR)/base/sos && autoreconf -if
+	echo opa
+	cd $(ODABA_SRC_DIR)/base/opa && autoreconf -if
+	echo gui
+	cd $(ODABA_SRC_DIR)/gui/gui && autoreconf -if
+	echo adk
+	cd $(ODABA_SRC_DIR)/gui/adk && autoreconf -if
+
+export:
+	git archive master | bzip2 >odaba-$(shell cat VERSION).tar.bz2
+	git archive --format zip --output odaba-$(shell cat VERSION).zip master