CVS: tmda-cgi configure,1.5,1.6

Jim Ramsay <[email protected]>
Newsgroups gmane.mail.spam.tmda.cvs
Message-ID <[email protected]>
Update of /cvsroot/tmda/tmda-cgi
In directory sc8-pr-cvs1:/tmp/cvs-serv7054

Modified Files:
	configure 
Log Message:
Make the resulting makefile a little more "correct":

"make" or "make all" or "make tmda.cgi" makes tmda.cgi in the local directory.

"make install" or "make /path/to/tmda.cgi" installs tmda.cgi into the right spot.

Make install now also sets the permission (this allows a user who is not root to compile system-wide and then all root has to do is "make install").



Index: configure
===================================================================
RCS file: /cvsroot/tmda/tmda-cgi/configure,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- configure	21 May 2003 16:07:59 -0000	1.5
+++ configure	21 May 2003 21:52:57 -0000	1.6
@@ -423,11 +423,20 @@
 
 # Create Makefile
 F = open("Makefile", "w")
-F.write("""%(Target)s: tmda-cgi.h
+F.write("""# This makefile is automatically generated by ./configure
+# Do not edit by hand
+
+all: tmda.cgi
+
+tmda.cgi: tmda-cgi.h
 \tcc -I . %(Path)stmda-cgi.c -o tmda.cgi
 \tchmod %(Perm)s tmda.cgi
-install:
-\tmv -f tmda.cgi %(Target)s
+
+install: %(Target)s
+
+%(Target)s: tmda.cgi
+\tcp -pf tmda.cgi %(Target)s
+\tchmod %(Perm)s %(Target)s
 """ % OptD)
 
 # Compile Python code

_______________________________________
tmda-cvs mailing list
http://tmda.net/lists/listinfo/tmda-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.