bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Grep 2.5: missing DESTDIR


From: Andreas Schwab
Subject: Grep 2.5: missing DESTDIR
Date: Thu, 14 Mar 2002 15:38:03 +0100
User-agent: Gnus/5.090005 (Oort Gnus v0.05) Emacs/21.2.50 (ia64-suse-linux)

This fixes the makefile to properly support DESTDIR and to avoid an error
when the target files already exist.

--- src/Makefile.am
+++ src/Makefile.am
@@ -18,5 +18,6 @@
              vms_fab.c vms_fab.h
 
 install-exec-local:
-       @SYMLINK@ @SYMLINKFROM@ $(bindir)/egrep
-       @SYMLINK@ @SYMLINKFROM@ $(bindir)/fgrep
+       rm -f $(DESTDIR)$(bindir)/egrep $(DESTDIR)$(bindir)/fgrep
+       @SYMLINK@ @SYMLINKFROM@ $(DESTDIR)$(bindir)/egrep
+       @SYMLINK@ @SYMLINKFROM@ $(DESTDIR)$(bindir)/fgrep

Andreas.

-- 
Andreas Schwab, SuSE Labs, address@hidden
SuSE GmbH, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]