Re: compiling



Are you starting with a clean directory? Try removing all .deps
directories. Re-compiling gnome is a fairly tricky procedure. Here's
the script and Makefile I use to clean out everything and re-compile
from cvs, developed throush a lot of trial and error. Hopefully this
will help someone.

----- doit -------
sudo make distclean
sudo find . -user root -exec rm -rf {} \;
find . -name .deps -exec rm -rf {} \;
find . -type l -exec rm -f {} \;
rm -rf */intl mc/gnome/FileManager*
if [ $# -lt 1 ]; then
    make get
fi
make bootstrap
rm -f TAGS
find . \( -name "*.[chyl]" -o -name "*.cc" \) -print | xargs etags -a

----- makefile -------
MODULES = glib gtk+ imlib ORBit audiofile esound gnome-libs libgtop \
	libgtop-apps gnome-guile libgtop-bindings libgtop-docu \
	gnome-http gnome-core gnome-audio \
	gnome-objc gnome-network stringlist fnlib e Eterm mc pharmacy \
	gnome-media gnome-linuxconf gnome-xml think gnumeric aorta \
	gnome-perl gimp \
	dia control-center e-conf grpm gnome-admin ee gnome-db \
	gnome-pim gnome-utils gnome-print desktop-docs gtop gnomeirc gtkicq

all:
	for i in $(MODULES); do \
		cd $$i; \
		$(MAKE) -k -j4 all; \
		cd ..; \
	done

conf:
	for i in $(MODULES); do \
		cd $$i; \
		doconf || ../doconf; \
		cd ..; \
	done

clean:
	for i in $(MODULES); do \
		cd $$i; \
		sudo $(MAKE) -k clean; \
		cd ..; \
	done

distclean:
	for i in $(MODULES); do \
		cd $$i; \
		sudo $(MAKE) -k maintainer-clean || sudo $(MAKE) -k distclean || sudo $(MAKE) -k clean; \
		rm -f config.cache config.status config.log; \
		cd ..; \
	done

install:
	for i in $(MODULES); do \
		cd $$i; \
		make -k install; ldconfig; \
		cd ..; \
	done

bootstrap:
	for i in $(MODULES); do \
		cd /home/ajlill/src/ext/gnome/$$i; \
		echo; echo CONFIGURING $$i; echo; \
		doconf || ../doconf; \
		echo; echo BUILDING $$i; echo; \
		$(MAKE) -k -j4 all; \
		echo; echo INSTALLING $$i; echo; \
		sudo make -k install; sudo ldconfig; \
		echo; echo REMOTE INSTALLING $$i; echo; \
		sudo ssh tardis "cd /home/ajlill/src/ext/gnome/$$i; make -k install; /sbin/ldconfig"; \
	done

test:
	sudo ssh tardis "cd /home/ajlill/mnt/src/ext/gnome/glib; make -k install; ldconfig"

get:
	cvs get $(MODULES)

---- doconf ----
#! /bin/sh
LDFLAGS=-s CFLAGS="-O3 -Wall" ./autogen.sh --prefix=/usr

--
Tony Lill,                         Tony.Lill@AJLC.Waterloo.ON.CA
President, A. J. Lill Consultants        fax/data (519) 650 3571
539 Grand Valley Dr., Cambridge, Ont. N3H 2S2     (519) 241 2461
--------------- http://www.ajlc.waterloo.on.ca/ ----------------
"Welcome to All Things UNIX, where if it's not UNIX, it's CRAP!"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]