860
|
1 # @configure_input@ |
6
|
2 # |
|
3 # Common rules for octave's libcruft directories. |
|
4 # |
|
5 # John W. Eaton |
1452
|
6 # jwe@bevo.che.wisc.edu |
|
7 # University of Wisconsin-Madison |
6
|
8 # Department of Chemical Engineering |
|
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 |
1668
|
22 all: stamp-picdir $(CRUFT_OBJ) $(SPECIAL_DEPEND) |
6
|
23 .PHONY: all |
|
24 |
1668
|
25 stamp-picdir: |
|
26 if [ -n "$(FPICFLAG)" ] || [ -n "$(CPICFLAG)" ] || [ -n "$(CXXPICFLAG)" ]; then \ |
|
27 if [ -d pic ]; then true; else mkdir pic ; fi ; \ |
|
28 else true; fi |
|
29 touch stamp-picdir |
|
30 |
6
|
31 install: all |
|
32 .PHONY: install |
|
33 |
|
34 uninstall: |
|
35 .PHONY: uninstall |
|
36 |
|
37 tags: $(SOURCES) |
|
38 ctags $(SOURCES) |
|
39 |
|
40 TAGS: $(SOURCES) |
|
41 etags $(SOURCES) |
|
42 |
1459
|
43 clean:: |
6
|
44 rm -f *.a *.o |
|
45 .PHONY: clean |
|
46 |
1459
|
47 mostlyclean:: |
6
|
48 rm -f *.o |
|
49 .PHONY: mostlyclean |
|
50 |
1459
|
51 distclean:: clean |
|
52 rm -f Makefile |
|
53 .PHONY: distclean |
|
54 |
|
55 maintainer-clean:: distclean |
|
56 rm -f tags TAGS |
1393
|
57 .PHONY: maintainer-clean |
6
|
58 |
|
59 local-dist: |
|
60 ln $(DISTFILES) ../../`cat ../../.fname`/libcruft/$(THISDIR) |
|
61 .PHONY: local-dist |
|
62 |
|
63 dist: |
|
64 ln $(EXTERNAL_DISTFILES) ../../`cat ../../.fname`/libcruft/$(THISDIR) |
|
65 .PHONY: dist |