modify Makefile for packing

This commit is contained in:
Zheng Shuxin 2017-06-23 10:11:55 +08:00
parent 297942badf
commit e6acbb95af

View File

@ -12,10 +12,11 @@ RANLIB = ${ENV_RANLIB}
OSNAME = $(shell uname -a) OSNAME = $(shell uname -a)
OSTYPE = $(shell uname -a) OSTYPE = $(shell uname -a)
DESTDIR =
PREFIX = /usr PREFIX = /usr
BIN_PATH = $(PREFIX)/bin/ BIN_PATH = $(DESTDIR)/$(PREFIX)/bin/
LIB_ACL = $(PREFIX)/lib LIB_ACL = $(DESTDIR)/$(PREFIX)/lib
INC_ACL = $(PREFIX)/include/acl-lib INC_ACL = $(DESTDIR)/$(PREFIX)/include/acl-lib
LIB_DIST = ./dist/lib LIB_DIST = ./dist/lib
INC_PATH = ./dist/include INC_PATH = ./dist/include
@ -127,7 +128,7 @@ packinstall:
$(shell mkdir -p $(INC_ACL)/acl_cpp) $(shell mkdir -p $(INC_ACL)/acl_cpp)
$(shell mkdir -p $(BIN_PATH)/) $(shell mkdir -p $(BIN_PATH)/)
$(shell mkdir -p $(LIB_ACL)/) $(shell mkdir -p $(LIB_ACL)/)
$(shell mkdir -p /opt/soft/acl-master/) $(shell mkdir -p $(DESTDIR)/opt/soft/acl-master/)
$(shell mkdir -p ./dist/master/libexec/$(RPATH)) $(shell mkdir -p ./dist/master/libexec/$(RPATH))
cp -f app/master/daemon/acl_master ./dist/master/libexec/$(RPATH)/ cp -f app/master/daemon/acl_master ./dist/master/libexec/$(RPATH)/
(cd dist/master && ./setup.sh /opt/soft/acl-master) (cd dist/master && ./setup.sh /opt/soft/acl-master)