Source

patcher / Makefile

### Makefile --- toplevel makefile for Patcher

## Copyright (C) 2000, 2001, 2002, 2003, 2004 Didier Verna.

## PRCS: $Id: Makefile 1.10.1.3 Tue, 12 Dec 2006 18:00:00 +0100 didier $

## Author:        Didier Verna <didier@xemacs.org>
## Maintainer:    Didier Verna <didier@xemacs.org>
## Created:       Wed Mar  1 13:23:24 2000
## Last Revision: Tue Aug 31 14:14:48 2004

## This file is part of Patcher.

## Patcher is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License version 2,
## as published by the Free Software Foundation.

## Patcher is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
## GNU General Public License for more details.

## You should have received a copy of the GNU General Public License
## along with this program; if not, write to the Free Software
## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.


### Commentary:

## Contents management by FCM version 0.1-b2.

## #### WARNING: please use GNU make with this makefile


### TODO:


### Change Log:


### Code:

# You probably don't want to edit this file, but Makefile.defs instead ...
include Makefile.defs

## That's a pain in the ass. I wish I could do this in the prj file :-(
## $Format: "PRCS_MAJOR_VERSION := $ProjectMajorVersion$"$
PRCS_MAJOR_VERSION := version-3-8
## $Format: "PRCS_MINOR_VERSION := $ProjectMinorVersion$"$
PRCS_MINOR_VERSION := 2
VERSION := $(shell ./version.sh $(PRCS_MAJOR_VERSION) $(PRCS_MINOR_VERSION))

DIST_FILES := NEWS INSTALL COPYING \
              version.sh Makefile.defs Makefile
SUBDIRS    := lisp doc

all:
	$(MAKE) gen TARGET=all

gen:
	@for i in $(SUBDIRS) ; do                 \
           echo "making $(TARGET) in $${i} ..." ; \
           ( cd $${i} && $(MAKE) $(TARGET) ) ;    \
         done

dist:
	mkdir patcher-$(VERSION)
	cp $(DIST_FILES) patcher-$(VERSION)/
	$(MAKE) gen TARGET=sub-dist VERSION=$(VERSION)
	$(TAR) cvf patcher-$(VERSION).tar patcher-$(VERSION)
	$(GZIP) -c patcher-$(VERSION).tar > patcher-$(VERSION).tar.gz
	$(BZIP) -c patcher-$(VERSION).tar > patcher-$(VERSION).tar.bz2
	rm -fr patcher-$(VERSION) patcher-$(VERSION).tar

install-www: dist
	install -m 644 NEWS $(WWW_DIR)/patcher-news.txt
	echo "$(VERSION)" > $(WWW_DIR)/patcher-version.txt
	chmod 644 $(WWW_DIR)/patcher-version.txt
	install -m 644 patcher-$(VERSION).tar.gz $(WWW_DIR)/patcher.tar.gz
	install -m 644 patcher-$(VERSION).tar.bz2 $(WWW_DIR)/patcher.tar.bz2
	cd doc && $(MAKE) install-www

uninstall-www:
	-rm $(WWW_DIR)/patcher-version.txt
	-rm $(WWW_DIR)/patcher-news.txt
	-rm $(WWW_DIR)/patcher.tar.gz
	-rm $(WWW_DIR)/patcher.tar.bz2
	cd doc && $(MAKE) uninstall-www

checkin:
	prcs checkin
	prcs rekey

# [un]install-pkg install-cvs-pkg install-www clean dist-clean
.DEFAULT:
	$(MAKE) gen TARGET=$@

.PHONY: all gen dist install-www uninstall-www checkin

### Makefile ends here
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.