Add an install target to Makefiles.
--HG-- extra : convert_revision : 4c2e5e60d95fc414980e148e407a97fa4eca9bfd
This commit is contained in:
parent
fd999f1136
commit
92b9d7d8ca
10
Makefile
10
Makefile
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue