view libcruft/Makerules.in @ 1920:6fdb56b2cb33

[project @ 1996-02-11 02:23:07 by jwe]
author jwe
date Sun, 11 Feb 1996 02:23:22 +0000
parents e436e535e295
children 91d7630f727a
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: stamp-picdir $(CRUFT_OBJ) $(SPECIAL_DEPEND)
.PHONY: all

stamp-picdir:
	if [ -n "$(FPICFLAG)" ]; then \
	  if [ -d pic ]; then true; else mkdir pic ; fi ; \
	else true; fi
	touch stamp-picdir

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