summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2014-09-22 15:33:06 +0100
committerDavid Howells <dhowells@redhat.com>2014-09-22 15:33:06 +0100
commit8823736faf5055aa471956c0d97c0f06968a2137 (patch)
treef723504170519c7c039280889e1f133fb0efb1b1 /Makefile
parenta4deb71ddc05e951c8be8d46615beed9d408a5c8 (diff)
downloadkeyutils-8823736faf5055aa471956c0d97c0f06968a2137.tar.gz
Don't define LNS twice in the Makefile and define in terms of $(LN)
The LNS Makefile macro is defined the same way twice. Remove the second definition. Also, put the definition of LNS in terms of $(LN). Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 1 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 5dd2113..c678744 100644
--- a/Makefile
+++ b/Makefile
@@ -17,7 +17,7 @@ MAN5 := $(MANDIR)/man5
MAN7 := $(MANDIR)/man7
MAN8 := $(MANDIR)/man8
INCLUDEDIR := /usr/include
-LNS := ln -sf
+LNS := $(LN) -sf
###############################################################################
#
@@ -63,8 +63,6 @@ USRLIBDIR := $(patsubst /lib/%,/usr/lib/%,$(LIBDIR))
endif
BUILDFOR := $(shell file /usr/bin/make | sed -e 's!.*ELF \(32\|64\)-bit.*!\1!')-bit
-LNS := ln -sf
-
ifeq ($(origin CFLAGS),undefined)
ifeq ($(BUILDFOR),32-bit)
CFLAGS += -m32