7
Makefile.distrib
- #
- COMPONENT = @COMPONENT@
- VERSION = @VERSION@
- REVISION = @REVISION@
- INC_FILES = @INC_FILES@
- LIB_FILES = @LIB_FILES@
- ETC_FILES = @ETC_FILES@
- OWNER = root
- GROUP = sys
- MODE = 444
- XMODE = 755
- INSTALL_DIR = /usr/local
- INC_DIR = $(INSTALL_DIR)/include
- LIB_DIR = $(INSTALL_DIR)/lib
- ETC_DIR = $(INSTALL_DIR)/etc
- ALL_DIRS = $(INSTALL_DIR) $(INC_DIR) $(LIB_DIR) $(ETC_DIR)
- TAR_FILE = $(COMPONENT)-$(VERSION)-$(REVISION).tar
- INSTALL = @INSTALL@
- install: install.dir install.inc install.lib install.etc
- install.dir:
- echo [Installing MagicBus $(VERSION) in $(INSTALL_DIR)]
- for n in $(ALL_DIRS); do if [ ! -d $$n ]; then mkdir $$n; chown $(OWNER) $$n; chgrp $(GROUP) $$n; chmod $(XMODE) $$n; fi; done
- install.inc:
- for n in $(INC_FILES); do echo $$n; done
- $(INSTALL) -c -m $(MODE) -o $(OWNER) -g $(GROUP) $(INC_FILES) $(INC_DIR)
- install.lib:
- for n in $(LIB_FILES); do echo $$n; done
- $(INSTALL) -c -m $(MODE) -o $(OWNER) -g $(GROUP) $(LIB_FILES) $(LIB_DIR)
- install.etc:
- for n in $(ETC_FILES); do echo $$n; done
- $(INSTALL) -c -m $(XMODE) -o $(OWNER) -g $(GROUP) $(ETC_FILES) $(ETC_DIR)
- clean:
- distrib:
- echo [Building $(TAR_FILE).gz]
- (wd=`pwd`; dir=`basename $$wd`; cd ..; tar -chf - $$dir|gzip >$(TAR_FILE).gz)
Comments