860
|
1 # @configure_input@ |
6
|
2 # |
|
3 # Common rules for octave's libcruft directories. |
|
4 # |
|
5 # John W. Eaton |
|
6 # jwe@che.utexas.edu |
|
7 # Department of Chemical Engineering |
|
8 # The University of Texas at Austin |
|
9 |
|
10 SOURCES = *.f |
|
11 |
|
12 DISTFILES = Makefile.in $(SOURCES) $(SPECIAL) |
|
13 |
|
14 CRUFT_FSRC = $(wildcard $(srcdir)/*.f) |
|
15 CRUFT_BASE = $(notdir $(CRUFT_FSRC)) |
|
16 CRUFT_CSRC = $(patsubst %.f, %.c, $(CRUFT_BASE)) |
|
17 CRUFT_OBJ = $(patsubst %.f, %.o, $(CRUFT_BASE)) |
|
18 |
|
19 CWD = $(shell pwd) |
|
20 THISDIR = $(notdir $(CWD)) |
|
21 |
|
22 all: $(CRUFT_OBJ) $(SPECIAL_DEPEND) |
|
23 .PHONY: all |
|
24 |
|
25 install: all |
|
26 .PHONY: install |
|
27 |
|
28 uninstall: |
|
29 .PHONY: uninstall |
|
30 |
|
31 tags: $(SOURCES) |
|
32 ctags $(SOURCES) |
|
33 |
|
34 TAGS: $(SOURCES) |
|
35 etags $(SOURCES) |
|
36 |
|
37 clean: |
|
38 rm -f *.a *.o |
|
39 .PHONY: clean |
|
40 |
|
41 mostlyclean: |
|
42 rm -f *.o |
|
43 .PHONY: mostlyclean |
|
44 |
1393
|
45 maintainer-clean: clean |
6
|
46 rm -f tags TAGS Makefile |
1393
|
47 .PHONY: maintainer-clean |
6
|
48 |
|
49 local-dist: |
|
50 ln $(DISTFILES) ../../`cat ../../.fname`/libcruft/$(THISDIR) |
|
51 .PHONY: local-dist |
|
52 |
|
53 dist: |
|
54 ln $(EXTERNAL_DISTFILES) ../../`cat ../../.fname`/libcruft/$(THISDIR) |
|
55 .PHONY: dist |