Makefile 943 Bytes
Newer Older
gotm's avatar
gotm committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
#
# Master Makefile for the getm project.
#

VERSION = 1
PATCHLEVEL = 1
SUBLEVEL = 0

VER	= $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)

EXEC	= model$(libtype)

base =  BUGS INSTALL README TODO HISTORY

all: VERSION $(EXEC) doc

$(EXEC): include/version.h
	$(MAKE) -C src $(EXEC) install

include/version.h: ./Makefile
	@echo \#define RELEASE \"$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)\" > .ver
	@mv -f .ver $@

VERSION: ./Makefile
	 @echo $(VERSION).$(PATCHLEVEL).$(SUBLEVEL) > $@

doc:
	$(MAKE) -C src/ doc
	set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i doc; done

clean:
	rm -f VERSION

distclean:
	$(MAKE) -C src distclean
	$(MAKE) -C utils distclean
gotm's avatar
gotm committed
37
	$(RM) -r bin
gotm's avatar
gotm committed
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59

dist: distclean
	(cd ../ ; tar cf - v$(VER)/ | gzip -9 > v$(VER).tar.gz) 
	sync

diff:
	cvs diff > cvs.diff
	vi cvs.diff
	$(RM) cvs.diff

update:
	cvs update > cvs.update
	vi cvs.update
	$(RM) cvs.update
	cvs2cl
	vi ChangeLog

commit:
	cvs commit > cvs.commit
	vi cvs.commit

dummy: