chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b889880
)
[PATCH] cleanup PATCH for extras/chassis_id/Makefile
author
harald@redhat.com
<harald@redhat.com>
Wed, 6 Oct 2004 05:20:12 +0000
(22:20 -0700)
committer
Greg KH
<gregkh@suse.de>
Wed, 27 Apr 2005 04:37:02 +0000
(21:37 -0700)
for "make install"
extras/chassis_id/Makefile
patch
|
blob
|
history
diff --git
a/extras/chassis_id/Makefile
b/extras/chassis_id/Makefile
index 1b641cafdad8fbdd8310e81894d9d0e95805d689..141d23c7b817c42aa38d40e5f643d55ab48ec9c0 100644
(file)
--- a/
extras/chassis_id/Makefile
+++ b/
extras/chassis_id/Makefile
@@
-23,6
+23,11
@@
CFLAGS = -g
TARGET = chassis_id
+exec_prefix = ${prefix}
+sbindir = ${exec_prefix}/sbin
+INSTALL = /usr/bin/install -c
+INSTALL_PROGRAM = ${INSTALL}
+INSTALL_DATA = ${INSTALL} -m 644
all: chassis_id
chassis_id: chassis_id.c table.c
@@
-30,3
+35,7
@@
chassis_id: chassis_id.c table.c
clean:
rm -rf core a.out $(TARGET)
+
+install: all
+ $(INSTALL_PROGRAM) $(TARGET) $(DESTDIR)$(sbindir)/$(TARGET)
+