view libcruft/Makerules.in @ 1668:6e8ac624ed9b

[project @ 1995-12-26 06:35:24 by jwe]
author jwe
date Tue, 26 Dec 1995 06:40:29 +0000
parents 0b5abd833621
children b66e40443b56
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)" ] || [ -n "$(CPICFLAG)" ] || [ -n "$(CXXPICFLAG)" ]; 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