[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: CVS: projects/distro/haydarlinux/hwm/include defaults.h
- To: developer at arabeyes dot org
- Subject: Re: CVS: projects/distro/haydarlinux/hwm/include defaults.h
- From: Mohammed Elzubeir <elzubeir at arabeyes dot org>
- Date: Tue, 9 Apr 2002 01:25:51 -0500
- User-agent: Mutt/1.2.5i
On Mon, Apr 08, 2002 at 10:53:13AM +0200, Haydar Net wrote:
> Dear Mohammed,
> I don't know what OS you are working on, but as far as i know it should work.
>
> make sure that the variable "DEST" is there in Makefile and not commeted"
> DEST = /usr/local
> or
> DEST = /usr
If you are talking about the root Makefile then it is there.. on CVS
(Makefile rev 1.2).
>
> there is a small deferent in the Makefile between old one and the last one, the new Makefile installes noarch files to
> $DIST/share/hwm
> libraries to $DIST/lib
> and binaries to $DIST/bin
Which old one and which last one?
Here is a diff of 1.1 and 1.2's Makefile:
---------------
diff -u -r1.1 -r1.2
--- projects/distro/haydarlinux/hwm/Makefile 2002/02/10 04:18:33 1.1
+++ projects/distro/haydarlinux/hwm/Makefile 2002/03/04 02:09:01 1.2
@@ -7,7 +7,7 @@
# DEST = $(HWMDIR)
#fi
-DEST = "/usr/local/"
+DEST = /usr/local
#DEST = /usr/local
#DEST = /usr/local
@@ -18,7 +18,7 @@
MANPATH = $(DEST)/share/man
SHAREPATH= $(DEST)/share/hwm
-DVERSION = 0.30
+DVERSION = 0.31
all: config
cd libhwm ; $(MAKE)
@@ -44,17 +44,25 @@
echo "#define DVERSION \"$(DVERSION)\n\"") > conf.h ;
touch config
-clean:
+distclean:
cd libhwm ; $(MAKE) distclean
cd hwm ; $(MAKE) distclean
-# cd dclock ; $(MAKE) clean
cd extra/hwmclock ; $(MAKE) distclean
cd extra/biff ; $(MAKE) distclean
cd extra/hrun ; $(MAKE) distclean
rm -f config files/defaults
rm -f *~ core
-dist: clean
+clean:
+ cd libhwm ; $(MAKE) clean
+ cd hwm ; $(MAKE) clean
+ cd extra/hwmclock ; $(MAKE) clean
+ cd extra/biff ; $(MAKE) clean
+ cd extra/hrun ; $(MAKE) clean
+ rm -f config files/defaults
+ rm -f *~ core
+
+dist: distclean
find -exec touch {} \; ; \
d=hwm-$(DVERSION) ; \
cd .. ; \
@@ -87,7 +95,6 @@
echo "cd $(SHAREPATH)" ;\
echo "cp defaults ~/.hwm" ;\
echo "cp appdefaults ~/.hwm" ;\
- echo "cp menuconfig ~/.hwm" ;\
echo "cp -r Desktop ~/.hwm") >$(BINPATH)/hwminst
chmod 755 $(BINPATH)/hwminst
----------------------------------------
I'm confused ;)
> and i think this is what you mean by not installing everything in one dir?
No, not in one or more directories. Okay, I think I might know what
happened.. but not sure how it happened. It's supposed to have copied
the files/* onto $(SHAREPATH)/share/hwm
----
DEST = /usr/local
SHAREPATH= $(DEST)/share/hwm
cd files && cp -r * $(SHAREPATH) && if ! test -e ~/.hwm ;\
then (echo 'mkdir -p ~/.hwm && \
cp defaults ~/.hwm && cp appdefaults ~/.hwm && cp menuconfig
~/.hwm \
&& cp -r Desktop ~/.hwm') | su $${LOGNAME} ; fi
-------
The above is an excerpt of the relevant lines. So, it didn't create any
~/.hwm , neither did it copy the files/* contents to where it was
supposed to.
> I don't know why the library is not linked, if you see the Makefile you will see the lines:
> ln -sf $(LIBPATH)/libhwm.so.0.1.9 $(LIBPATH)/libhwm.so.0.1
> ln -sf $(LIBPATH)/libhwm.so.0.1 $(LIBPATH)/libhwm.so.0
> ln -sf $(LIBPATH)/libhwm.so.0 $(LIBPATH)/libhwm.so
> LIBPATH is $DIST/lib, is there anything that i should change with it?
Well, now that you ask ;) Maybe a move to an auto-configuration tool?
Dare I say the autotools ;) And if you don't like to mess with it and
are like Chahine (who I hope wakes out his coma by now), you may want to
give 'chonfigure' a look (tools/chonfigure on cvs).
> from what i can see i think that the variables are not probebly defind in your Makefile and i don't know why?
>
Hrmm.. okay, well I am relying on what's on CVS to be the most upto-date
changes, if not the latest working upto-date version ;)
It would be nice if you would also tag the versions.
All this is trying to do is highlight the importance of making the
source compile and work under every target system. I'm doing this on
a Linux system (so, no FreeBSD.. though it shouldn't matter).
later
--
-------------------------------------------------------
| Mohammed Elzubeir | Visit us at: |
| | http://www.arabeyes.org/ |
| Arabeyes Project | Homepage: |
| Unix the 'right' way | http://fakkir.net/~elzubeir/|
-------------------------------------------------------