Skip to content
Snippets Groups Projects
Makefile 719 B
Newer Older
teuben's avatar
teuben committed
# top level Makefile for partiview

slevy's avatar
slevy committed
VERSION = `cat src/VERSION`
teuben's avatar
teuben committed

TAG = partiview-`date +%Y-%m-%d-%H%M`
#TAG = partiview-2000-11-29

teuben's avatar
teuben committed
EDIR =  partiview-$(VERSION)
EFILE = $(EDIR).tar.gz

RDIR = teuben@apus:/apus1/nemo/local/www/amnh


# things to export

FILES = HISTORY Makefile VERSION README.FIRST
teuben's avatar
teuben committed
DIRS =  src data doc nemo starlab windows tutor
teuben's avatar
teuben committed

help:
	@echo 'Try "make build" to rebuild src, if you already ran "configure".'
teuben's avatar
teuben committed
	@echo Nohelp for VERSION=$(VERSION)
	@echo Exportdir = $(EDIR)

build:
	(cd src; make depend; make)

teuben's avatar
teuben committed

.PHONY:  tar export


teuben's avatar
teuben committed
dist:
	rm -rf $(EDIR)
	cvs -q tag $(TAG)
	cvs -q export -r $(TAG) -d $(EDIR) partiview
	tar -zcf $(EFILE) $(EDIR)
	rm -rf $(EDIR)
teuben's avatar
teuben committed

export:
	scp -C $(EFILE) $(RDIR)
teuben's avatar
teuben committed