summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhpa <hpa>2001-12-13 09:10:37 +0000
committerhpa <hpa>2001-12-13 09:10:37 +0000
commit4a6a0d52d0854f0c8482db64e63728786f759b24 (patch)
treef02bc34e6b4f915b3dbac75be1115d0d2e67e7c9
parent0081c187002a264d211abcc6f32179a51230e0ba (diff)
downloadsyslinux-1.65-pre10.tar.gz
Make "make install" actually install all the things that shouldsyslinux-1.65-pre10
be installed.
-rw-r--r--Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 1f101696..c9cbc034 100644
--- a/Makefile
+++ b/Makefile
@@ -21,6 +21,7 @@ CFLAGS = -Wall -O2 -fomit-frame-pointer
LDFLAGS = -O2 -s
BINDIR = /usr/bin
+LIBDIR = /usr/lib/syslinux
VERSION = $(shell cat version)
@@ -44,7 +45,10 @@ OTHER = Makefile bin2c.pl now.pl genstupid.pl keytab-lilo.pl version \
OBSOLETE = pxelinux.bin
# Things to install in /usr/bin
-INSTALL_BIN = syslinux gethostip ppmtolss16 lss16toppm
+INSTALL_BIN = syslinux gethostip ppmtolss16 lss16toppm
+# Things to install in /usr/lib/syslinux
+INSTALL_LIB = pxelinux.0 isolinux.bin isolinux-debug.bin \
+ syslinux.com copybs.com memdisk/memdisk
# The DATE is set on the make command line when building binaries for
# official release. Otherwise, substitute a hex string that is pretty much
@@ -133,7 +137,9 @@ gethostip.o: gethostip.c
gethostip: gethostip.o
install: all
- install -c $(INSTALL_BIN) $(INSTALLROOT)$(BINDIR)
+ mkdir -m 755 -p $(INSTALLROOT)$(BINDIR) $(INSTALLROOT)$(LIBDIR)
+ install -m 755 -c $(INSTALL_BIN) $(INSTALLROOT)$(BINDIR)
+ install -m 644 -c $(INSTALL_LIB) $(INSTALLROOT)$(LIBDIR)
local-tidy:
rm -f *.o *_bin.c stupid.*