Add an install target to Makefiles.

--HG--
extra : convert_revision : 4c2e5e60d95fc414980e148e407a97fa4eca9bfd
This commit is contained in:
Juan RP 2008-12-20 11:04:12 +01:00
parent fd999f1136
commit 92b9d7d8ca
2 changed files with 18 additions and 4 deletions

View File

@ -1,5 +1,15 @@
PREFIX ?= /usr/local
BINDIR ?= $(PREFIX)/bin
all:
cd utils && make
install:
install -D xbps-src.sh $(BINDIR)/xbps-src
cd utils && make install
uninstall:
-rm -f $(BINDIR)/xbps-*
clean:
cd utils && make clean

View File

@ -1,8 +1,9 @@
PREFIX ?= /usr/local
CFLAGS += -Wall -Werror -O3 -I$(PREFIX)/include
CFLAGS += -funroll-all-loops -ftree-loop-linear
LDFLAGS += -lprop
BINS ?= xbps-bin xbps-cmpver xbps-digest xbps-pkgdb
BINDIR ?= $(PREFIX)/bin
CFLAGS += -Wall -Werror -O3 -I$(PREFIX)/include
CFLAGS += -funroll-all-loops -ftree-loop-linear
LDFLAGS += -lprop
BINS ?= xbps-bin xbps-cmpver xbps-digest xbps-pkgdb
all: xbps_digest xbps_pkgdb xbps_bin xbps-cmpver strip_bins clean_objs
@ -41,3 +42,6 @@ clean_objs:
clean: clean_objs
-rm -f xbps-digest xbps-pkgdb xbps-cmpver
install: all
install -D $(BINS) $(BINDIR)