Ales Hvezda wrote:
        Let me know when things are working for you.

Here's a one-byte change I'd love to have in the toplevel Makefile, which allows me to move the installdir (aka "prefix") around:
---
#
# Set this to the location where you want to install gEDA/gaf
#
prefix?=$(HOME)/geda
---
This way I can simply say
prefix=~/CODE/gEDA/test0-install make all


Another small thing: currently gschem build doesn't use $prefix/include but some system-wide includes (where in my case it finds outdated geda-installs from my distro). In geda/devel/gschem/src/Makefile.am the include line should read: INCLUDES = -I$(prefix)/include -I$(top_srcdir)/intl -I$(top_srcdir)/include @GSCHEM_CFLAGS@

same for linking:
gschem_LDADD = -L$(prefix)/lib @GSCHEM_LDFLAGS@ @LIBINTL@


Then gEDA builds propperly. Patch attached.

HTH,

Matthias
diff -Nur geda-orig-06-01-2006/devel/Makefile geda-mine/devel/Makefile
--- geda-orig-06-01-2006/devel/Makefile	2005-08-21 04:30:36.000000000 +0200
+++ geda-mine/devel/Makefile	2006-01-06 10:56:15.000000000 +0100
@@ -22,7 +22,7 @@
 #
 # Set this to the location where you want to install gEDA/gaf
 #
-prefix=$(HOME)/geda
+prefix?=$(HOME)/geda
 
 #
 # You can set any global options you want here to be passed to the 
diff -Nur geda-orig-06-01-2006/devel/gschem/src/Makefile.am geda-mine/devel/gschem/src/Makefile.am
--- geda-orig-06-01-2006/devel/gschem/src/Makefile.am	2006-01-06 10:44:25.000000000 +0100
+++ geda-mine/devel/gschem/src/Makefile.am	2006-01-08 01:28:32.000000000 +0100
@@ -39,8 +39,8 @@
 AM_CFLAGS = -Wall
 endif
 
-INCLUDES = -I$(top_srcdir)/intl -I$(top_srcdir)/include @GSCHEM_CFLAGS@
-gschem_LDADD = @GSCHEM_LDFLAGS@ @LIBINTL@
+INCLUDES = -I$(prefix)/include -I$(top_srcdir)/intl -I$(top_srcdir)/include @GSCHEM_CFLAGS@
+gschem_LDADD = -L$(prefix)/lib @GSCHEM_LDFLAGS@ @LIBINTL@
 
 localedir = @datadir@/locale
 DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@

Reply via email to