2004-03-31 14:47:07 -05:00
|
|
|
# Makefile for the scsh installation library. Needs GNU make.
|
2004-11-14 09:26:10 -05:00
|
|
|
# $Id: Makefile,v 1.4 2004/11/14 14:26:10 michel-schinz Exp $
|
2004-03-31 14:47:07 -05:00
|
|
|
|
|
|
|
NAME = scsh-install-lib
|
2004-05-22 06:49:31 -04:00
|
|
|
VERSION = $(shell ./get-version.scm)
|
2004-03-31 14:47:07 -05:00
|
|
|
FULL_NAME = $(NAME)-$(VERSION)
|
|
|
|
|
|
|
|
LIB_FILES += scheme/install-lib/install-lib.scm
|
2004-05-22 06:49:31 -04:00
|
|
|
LIB_FILES += scheme/install-lib/install-lib-version.scm
|
2004-03-31 14:47:07 -05:00
|
|
|
LIB_FILES += scheme/install-lib/install-lib-module.scm
|
|
|
|
|
2004-05-22 06:49:31 -04:00
|
|
|
DOC_FILES += doc/latex/install-lib.pdf
|
2004-03-31 14:47:07 -05:00
|
|
|
|
2004-05-17 16:15:11 -04:00
|
|
|
MISC_FILES += install.scm
|
|
|
|
MISC_FILES += pkg-def.scm
|
2004-05-22 06:49:31 -04:00
|
|
|
MISC_FILES += NEWS
|
2004-05-17 16:15:11 -04:00
|
|
|
MISC_FILES += README
|
|
|
|
MISC_FILES += COPYING
|
|
|
|
|
2004-11-14 09:26:10 -05:00
|
|
|
BIN_FILES += scheme/pkg-checker/scsh-test-pkg
|
|
|
|
|
2004-05-17 16:15:11 -04:00
|
|
|
DIST_FILES = $(LIB_FILES) $(DOC_FILES) $(MISC_FILES)
|
2004-03-31 14:47:07 -05:00
|
|
|
|
|
|
|
DIST_TMP_DIR = distrib-tmp
|
|
|
|
DIST_MAIN_DIR = $(DIST_TMP_DIR)/$(FULL_NAME)
|
|
|
|
|
|
|
|
ARCHIVE = $(FULL_NAME).tar.gz
|
|
|
|
MD5_FILE = $(ARCHIVE).md5
|
|
|
|
|
|
|
|
WEB_USER = schinz
|
2004-11-14 09:26:10 -05:00
|
|
|
WEB_HOST = lamppc1s1.epfl.ch
|
2004-03-31 14:47:07 -05:00
|
|
|
WEB_DIR = /home/schinz/public_html/scsh_packages/
|
|
|
|
|
|
|
|
# Commands used in the rules
|
|
|
|
CP = cp
|
|
|
|
INSTALL = install
|
|
|
|
MD5SUM = md5sum
|
|
|
|
MKDIR = mkdir
|
|
|
|
PDFLATEX = pdflatex
|
|
|
|
SCP = scp
|
|
|
|
RM = rm
|
|
|
|
TAR = tar
|
|
|
|
|
|
|
|
all:
|
|
|
|
|
|
|
|
clean:
|
|
|
|
$(RM) -f $(ARCHIVE) $(MD5_FILE) $(DOC_FILES)
|
|
|
|
|
|
|
|
distrib: $(ARCHIVE)
|
|
|
|
|
2004-05-22 06:49:31 -04:00
|
|
|
$(ARCHIVE): $(DIST_FILES) Makefile
|
2004-03-31 14:47:07 -05:00
|
|
|
$(RM) -rf $(DIST_TMP_DIR)
|
|
|
|
$(MKDIR) $(DIST_TMP_DIR)
|
|
|
|
$(MKDIR) $(DIST_MAIN_DIR)
|
|
|
|
$(MKDIR) $(DIST_MAIN_DIR)/doc
|
|
|
|
$(CP) -p $(DOC_FILES) $(DIST_MAIN_DIR)/doc
|
|
|
|
$(MKDIR) $(DIST_MAIN_DIR)/scheme
|
|
|
|
$(CP) -p $(LIB_FILES) $(DIST_MAIN_DIR)/scheme
|
2004-05-17 16:15:11 -04:00
|
|
|
$(CP) -p $(MISC_FILES) $(DIST_MAIN_DIR)
|
2004-11-14 09:26:10 -05:00
|
|
|
$(MKDIR) $(DIST_MAIN_DIR)/bin
|
|
|
|
$(CP) -p $(BIN_FILES) $(DIST_MAIN_DIR)/bin
|
2004-03-31 14:47:07 -05:00
|
|
|
$(TAR) --create --gzip --file=$@ --directory=$(DIST_TMP_DIR) $(FULL_NAME)
|
|
|
|
$(RM) -rf $(DIST_TMP_DIR)
|
|
|
|
|
|
|
|
install-web: $(ARCHIVE) $(DOC_FILES) $(MD5_FILE)
|
|
|
|
$(SCP) $^ $(WEB_USER)@$(WEB_HOST):$(WEB_DIR)
|
|
|
|
|
|
|
|
%.pdf: %.tex
|
|
|
|
cd $(dir $^); $(PDFLATEX) $(notdir $^); $(PDFLATEX) $(notdir $^)
|
|
|
|
|
|
|
|
%.md5: %
|
|
|
|
$(MD5SUM) $^ > $@
|