681
|
1 # |
|
2 # Makefile for octave's scripts/polynomial directory |
|
3 # |
|
4 # John W. Eaton |
|
5 # jwe@che.utexas.edu |
|
6 # Department of Chemical Engineering |
|
7 # The University of Texas at Austin |
|
8 |
682
|
9 TOPDIR = ../.. |
681
|
10 |
|
11 script_sub_dir = polynomial |
|
12 |
|
13 srcdir = @srcdir@ |
|
14 top_srcdir = @top_srcdir@ |
|
15 VPATH = @srcdir@ |
|
16 |
|
17 include $(TOPDIR)/Makeconf |
|
18 |
|
19 INSTALL = @INSTALL@ |
|
20 INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
|
21 INSTALL_DATA = @INSTALL_DATA@ |
|
22 |
|
23 SOURCES = *.m |
|
24 |
|
25 DISTFILES = Makefile.in $(SOURCES) |
|
26 |
|
27 FCN_FILES = $(wildcard $(srcdir)/*.m) |
|
28 FCN_FILES_NO_DIR = $(notdir $(FCN_FILES)) |
|
29 |
|
30 all: |
|
31 .PHONY: all |
|
32 |
|
33 install: all |
|
34 if test -d $(fcnfiledir)/$(script_sub_dir) ; then true ; \ |
|
35 else $(TOPDIR)/mkpath $(fcnfiledir)/$(script_sub_dir) ; fi |
|
36 for f in $(FCN_FILES_NO_DIR) ; do \ |
|
37 rm -f $(fcnfiledir)/$(script_sub_dir)/$$f ; \ |
|
38 $(INSTALL_DATA) $(srcdir)/$$f $(fcnfiledir)/$(script_sub_dir)/$$f ; \ |
|
39 done |
|
40 .PHONY: install |
|
41 |
|
42 uninstall: |
|
43 for f in $(FCN_FILES_NO_DIR) ; \ |
|
44 do rm -f $(fcnfiledir)/$(script_sub_dir)/$$f ; \ |
|
45 done |
|
46 .PHONY: uninstall |
|
47 |
|
48 clean: |
|
49 .PHONY: clean |
|
50 |
|
51 tags: $(SOURCES) |
|
52 ctags $(SOURCES) |
|
53 |
|
54 TAGS: $(SOURCES) |
|
55 etags $(SOURCES) |
|
56 |
|
57 mostlyclean: clean |
|
58 .PHONY: mostlyclean |
|
59 |
|
60 distclean: clean |
|
61 rm -f Makefile |
|
62 .PHONY: distclean |
|
63 |
|
64 realclean: distclean |
|
65 rm -f tags TAGS |
|
66 .PHONY: realclean |
|
67 |
|
68 local-dist: |
691
|
69 ln $(DISTFILES) ../../`cat ../../.fname`/scripts/polynomial |
681
|
70 .PHONY: local-dist |
|
71 |
|
72 dist: |
691
|
73 ln $(DISTFILES) ../../`cat ../../.fname`/scripts/polynomial |
681
|
74 .PHONY: dist |