chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
replace libsysfs
[elogind.git]
/
extras
/
scsi_id
/
Makefile
diff --git
a/extras/scsi_id/Makefile
b/extras/scsi_id/Makefile
index 8a8c714a8768071680985dc39ea83bee992b90de..057594d5bf06803bea13357d964dd5d0e09b7ec6 100644
(file)
--- a/
extras/scsi_id/Makefile
+++ b/
extras/scsi_id/Makefile
@@
-15,14
+15,13
@@
GEN_HEADERS = scsi_id_version.h
MAN_PAGES = scsi_id.8
prefix =
MAN_PAGES = scsi_id.8
prefix =
-exec_prefix = ${prefix}
etcdir = ${prefix}/etc
etcdir = ${prefix}/etc
-sbindir = ${exec_prefix}/sbin
-usrbindir = ${exec_prefix}/usr/bin
-usrsbindir = ${exec_prefix}/usr/sbin
+sbindir = ${prefix}/sbin
+usrbindir = ${prefix}/usr/bin
+usrsbindir = ${prefix}/usr/sbin
+libudevdir = ${prefix}/lib/udev
mandir = ${prefix}/usr/share/man
configdir = ${etcdir}/udev/
mandir = ${prefix}/usr/share/man
configdir = ${etcdir}/udev/
-srcdir = .
INSTALL = /usr/bin/install -c
INSTALL_PROGRAM = ${INSTALL}
INSTALL = /usr/bin/install -c
INSTALL_PROGRAM = ${INSTALL}
@@
-30,7
+29,6
@@
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_SCRIPT = ${INSTALL_PROGRAM}
# be able to run without udev
INSTALL_SCRIPT = ${INSTALL_PROGRAM}
# be able to run without udev
-LIBSYSFS = -lsysfs
CROSS =
QUIET =
CC = $(CROSS)gcc
CROSS =
QUIET =
CC = $(CROSS)gcc
@@
-48,8
+46,10
@@
all: $(PROG) $(MAN_PAGES)
$(QUIET) $(CC) -c $(CFLAGS) $< -o $@
$(PROG): %: $(HEADERS) %.o $(OBJS)
$(QUIET) $(CC) -c $(CFLAGS) $< -o $@
$(PROG): %: $(HEADERS) %.o $(OBJS)
- $(QUIET) $(LD) $(LDFLAGS) $@.o $(OBJS) -o $@ $(LIBUDEV) $(LIBSYSFS) $(LIB_OBJS)
+ $(QUIET) $(LD) $(LDFLAGS) $@.o $(OBJS) -o $@ $(LIBUDEV) $(LIB_OBJS)
+ifneq ($(strip $(STRIPCMD)),)
$(QUIET) $(STRIPCMD) $@
$(QUIET) $(STRIPCMD) $@
+endif
scsi_id_version.h:
@echo "/* This file is auto-generated by the Makefile */" > $@
scsi_id_version.h:
@echo "/* This file is auto-generated by the Makefile */" > $@