Unix makefiles: add "make install" case -> /usr/bin

install acpica utilities to /usr/bin
This commit is contained in:
Robert Moore 2011-02-11 13:07:07 -08:00
parent 2234a29e98
commit 016ae3e140
7 changed files with 24 additions and 0 deletions

View File

@ -18,4 +18,14 @@ clean: FORCE
fi); \
done
install: FORCE
@for d in ${DIRS}; do \
(cd $$d; \
if [ $$? -ne 0 ]; then \
echo "Bad element of DIRS: <$$d>"; \
else \
pwd; make install; \
fi); \
done
FORCE:

View File

@ -14,6 +14,7 @@ HOST = _CYGWIN
CC = gcc-4
ACPICA_SRC = ../../../source
DIRS = acpiexec acpinames acpisrc acpixtract iasl
INSTALLDIR = /usr/bin
#
# Common defines
@ -25,6 +26,7 @@ ACPICA_TOOLS = $(ACPICA_SRC)/tools
ACPICA_OSL = $(ACPICA_SRC)/os_specific/service_layers
COMPILE = $(CC) -c $(CFLAGS) $(CWARNINGFLAGS) -o$@ $?
COPYPROG = @mkdir -p ../bin; rm -f ../bin/$(PROG); cp --remove-destination $(PROG) ../bin
INSTALLPROG = cp --remove-destination $(PROG) $(INSTALLDIR)
#
# Common compiler flags. The warning flags in addition to -Wall are not

View File

@ -644,3 +644,6 @@ osunixxf.o : $(ACPICA_OSL)/osunixxf.c
clean :
rm -f $(PROG) $(PROG).exe $(OBJS)
install :
$(INSTALLPROG)

View File

@ -292,3 +292,6 @@ osunixxf.o : $(ACPICA_OSL)/osunixxf.c
clean :
rm -f $(PROG) $(PROG).exe $(OBJS)
install :
$(INSTALLPROG)

View File

@ -73,3 +73,5 @@ osunixdir.o : $(ACPICA_OSL)/osunixdir.c
clean :
rm -f $(PROG) $(PROG).exe $(OBJS)
install :
$(INSTALLPROG)

View File

@ -13,3 +13,5 @@ $(PROG) : $(ACPICA_TOOLS)/acpixtract/acpixtract.c
clean :
rm -f $(PROG) $(PROG).exe
install :
$(INSTALLPROG)

View File

@ -598,3 +598,5 @@ osunixxf.o : $(ACPICA_OSL)/osunixxf.c
clean :
rm -f $(PROG) $(PROG).exe $(OBJS) $(INTERMEDIATES) $(MISC)
install :
$(INSTALLPROG)