summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorharald@redhat.com <harald@redhat.com>2004-10-05 22:20:12 -0700
committerGreg KH <gregkh@suse.de>2005-04-26 21:37:02 -0700
commitff213aecf68b3427f0a8b2c8a1074851b1511299 (patch)
treecc2f212139f23b763b8f629c4a16625795f1fda3
parentb88988007310c6dd76c1b388baf2390549cce719 (diff)
[PATCH] cleanup PATCH for extras/chassis_id/Makefile
for "make install"
-rw-r--r--extras/chassis_id/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/extras/chassis_id/Makefile b/extras/chassis_id/Makefile
index 1b641cafda..141d23c7b8 100644
--- 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)
+