view libcruft/Makerules.in @ 1459:0b5abd833621

[project @ 1995-09-20 05:51:42 by jwe]
author jwe
date Wed, 20 Sep 1995 06:07:46 +0000
parents 2eb569ed50bf
children 6e8ac624ed9b
line wrap: on
line source

# @configure_input@
#
# Common rules for octave's libcruft directories.
#
# John W. Eaton
# jwe@bevo.che.wisc.edu
# University of Wisconsin-Madison
# Department of Chemical Engineering

SOURCES = *.f

DISTFILES = Makefile.in $(SOURCES) $(SPECIAL)

CRUFT_FSRC = $(wildcard $(srcdir)/*.f)
CRUFT_BASE = $(notdir $(CRUFT_FSRC))
CRUFT_CSRC = $(patsubst %.f, %.c, $(CRUFT_BASE))
CRUFT_OBJ = $(patsubst %.f, %.o, $(CRUFT_BASE))

CWD = $(shell pwd)
THISDIR = $(notdir $(CWD))

all: $(CRUFT_OBJ) $(SPECIAL_DEPEND)
.PHONY: all

install: all
.PHONY: install

uninstall:
.PHONY: uninstall

tags: $(SOURCES)
	ctags $(SOURCES)

TAGS: $(SOURCES)
	etags $(SOURCES)

clean::
	rm -f *.a *.o
.PHONY: clean

mostlyclean::
	rm -f *.o
.PHONY: mostlyclean

distclean:: clean
	rm -f Makefile
.PHONY: distclean
	
maintainer-clean:: distclean
	rm -f tags TAGS
.PHONY: maintainer-clean

local-dist:
	ln $(DISTFILES) ../../`cat ../../.fname`/libcruft/$(THISDIR)
.PHONY: local-dist

dist:
	ln $(EXTERNAL_DISTFILES) ../../`cat ../../.fname`/libcruft/$(THISDIR)
.PHONY: dist