fresh "make install" does not work

"Dr. Uwe Girlich" <[email protected]>
Newsgroups gmane.linux.ngpt.devel
Message-ID <[email protected]>
Hello list!

Here comes another problem with NGPT:

If I do make install and never installed the library in $prefix before,
the cp commands to create the .ngpt_backup files will all fail and so will
the make install fail.

The work-around is to use "make -i" to ignore the error.

The attached patch corrects the problem by ignoring the error code of cp in
the Makefile directly.
The other small thing was to remove the line 
$(SHTOOL) mkdir -f -p -m 755 $(prefix)/../lib 
in Makefile.in. We don't need this directory at all!

Bye, Uwe

-- 
Dr. Uwe Girlich              email: [email protected]
Philosys Software GmbH       www: www.philosys.de
Edisonstrasse 6              phone: +49 89 321407-44
D-85716 Unterschleissheim    fax: +49 89 321407-12
library-install.diff (text/plain, 1017 B)
diff -u -r --exclude='*.o' ngpt-2.0.1-orig/Makefile.in ngpt-2.0.1/Makefile.in
--- ngpt-2.0.1-orig/Makefile.in	Fri Jun 21 18:55:18 2002
+++ ngpt-2.0.1/Makefile.in	Tue Sep  3 08:48:17 2002
@@ -223,7 +225,6 @@
 	@$(MAKE) $(MFLAGS) what-next
 install-dirs:
 	$(SHTOOL) mkdir -f -p -m 755 $(prefix)
-	$(SHTOOL) mkdir -f -p -m 755 $(prefix)/../lib
 	$(SHTOOL) mkdir -f -p -m 755 $(bindir)
 	$(SHTOOL) mkdir -f -p -m 755 $(includedir)
 	$(SHTOOL) mkdir -f -p -m 755 $(includedir)/bits
@@ -236,7 +237,7 @@
 	$(SHTOOL) mkdir -f -p -m 755 $(includedir)/.ngpt-backup/include
 	$(SHTOOL) mkdir -f -p -m 755 $(includedir)/.ngpt-backup/include/bits
 	$(SHTOOL) mkdir -f -p -m 755 $(includedir)/.ngpt-backup/lib
-	@if [ ! -f .done-backup ]; then \
+	-@if [ ! -f .done-backup ]; then \
 	    $(CP) $(includedir)/pthread.h $(includedir)/.ngpt-backup/include  ; \
 	    $(CP) $(includedir)/semaphore.h $(includedir)/.ngpt-backup/include  ; \
 	    $(CP) $(includedir)/bits/pthreadtypes.h $(includedir)/.ngpt-backup/include/bits  ; \
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.