Mercurial > octave
view libcruft/Makerules.in @ 2037:65e18add08a6
[project @ 1996-03-27 12:20:30 by jwe]
author | jwe |
---|---|
date | Wed, 27 Mar 1996 12:23:28 +0000 |
parents | 91d7630f727a |
children | 6acfd17972b4 |
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)) ifeq ($(SHARED_LIBS), true) ifdef FPICFLAG CRUFT_PICOBJ := $(addprefix pic/, $(CRUFT_OBJ)) endif endif CWD = $(shell pwd) THISDIR = $(notdir $(CWD)) all: stamp-picdir $(CRUFT_OBJ) $(CRUFT_PICOBJ) \ $(SPECIAL_DEPEND) $(SPECIAL_PICDEPEND) .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