gnupic: making xwisp2 more UNIX compliant


Previous by date: 25 Oct 2005 17:55:59 +0100 Re: [gnupic] Ktechlab: no PIC in component list., Scott Dattalo
Next by date: 25 Oct 2005 17:55:59 +0100 PICP , OLIMEX serial port programmer, Rajesh Sankaran
Previous in thread:
Next in thread:

Subject: making xwisp2 more UNIX compliant
From: Easy B ####@####.####
Date: 25 Oct 2005 17:55:59 +0100
Message-Id: <85A8BB11-9D6C-40DC-9001-23A2454032E0@freesurf.ch>

Hi list

I already suggested to Rob to make xwisp2 more a UNIX app, by adding  
a install rule to the Makefile, that puts it into $(PREFIX)/bin and  
the required xwisp2.cfg into $(PREFIX)/share/xwisp2/. I know that you  
normally but configuration files as "."-file into the home directory,  
but this is a file for all users and /etc is not the right place for  
it, right? Excuse me, but I'm a Mac user and want someone to confirm  
this ;)
Anyway, this is my suggestion:

PREFIX=/usr/local
...
install:
     cp -f xwisp2u $(PREFIX)/bin/xwisp2
     cp -f xwlistu $(PREFIX)/bin/xwlist
     -mkdir $(PREFIX)/share/xwisp2
     cp -f xwisp2.cfg $(PREFIX)/share/xwisp2/

The right search path for xwisp2.cfg has to be added to the source  
code. I thought of "../share/xwisp2" or the absolute path if this  
doesn't work.

And I also think that renaming xwisp2_gu.mak to Makefile or  
GNUmakefile would make life easier too. make, make install...

What do you Linux guys think?

Cheers,
Ezra.

Previous by date: 25 Oct 2005 17:55:59 +0100 Re: [gnupic] Ktechlab: no PIC in component list., Scott Dattalo
Next by date: 25 Oct 2005 17:55:59 +0100 PICP , OLIMEX serial port programmer, Rajesh Sankaran
Previous in thread:
Next in thread:


Powered by ezmlm-browse 0.20.