Mercurial > hg > octave-nkf
view libcruft/Makerules.in @ 2134:f44d96f6ca9f
[project @ 1996-05-13 03:23:50 by jwe]
Initial revision
author | jwe |
---|---|
date | Mon, 13 May 1996 03:23:50 +0000 |
parents | 6acfd17972b4 |
children | b3d7a8e3bcc7 |
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 pic/*.o .PHONY: clean mostlyclean:: rm -f *.o pic/*.o .PHONY: mostlyclean distclean:: clean rm -f Makefile stamp-picdir -rmdir pic .PHONY: distclean maintainer-clean:: distclean rm -f tags TAGS stamp-picdir -rmdir pic .PHONY: maintainer-clean local-dist: ln $(DISTFILES) ../../`cat ../../.fname`/libcruft/$(THISDIR) .PHONY: local-dist dist: ln $(EXTERNAL_DISTFILES) ../../`cat ../../.fname`/libcruft/$(THISDIR) .PHONY: dist