732
|
1 # |
|
2 # Makefile for octave's scripts/startup directory |
|
3 # |
|
4 # John W. Eaton |
1452
|
5 # jwe@bevo.che.wisc.edu |
|
6 # University of Wisconsin-Madison |
732
|
7 # Department of Chemical Engineering |
|
8 |
|
9 TOPDIR = ../.. |
|
10 |
|
11 script_sub_dir = startup |
|
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 = octaverc # *.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 |
979
|
33 install: |
810
|
34 $(top_srcdir)/mkinstalldirs $(fcnfiledir)/$(script_sub_dir) |
732
|
35 if test -f $(fcnfiledir)/$(script_sub_dir)/octaverc ; then true ; \ |
|
36 else \ |
|
37 $(INSTALL_DATA) $(srcdir)/octaverc \ |
|
38 $(fcnfiledir)/$(script_sub_dir)/octaverc ; \ |
|
39 fi |
1475
|
40 $(top_srcdir)/mkinstalldirs $(localfcnfiledir)/$(script_sub_dir) |
|
41 if test -f $(localfcnfiledir)/$(script_sub_dir)/octaverc ; \ |
|
42 then true ; \ |
|
43 else \ |
|
44 $(INSTALL_DATA) $(srcdir)/octaverc \ |
|
45 $(localfcnfiledir)/$(script_sub_dir)/octaverc ; \ |
|
46 fi |
732
|
47 # for f in $(FCN_FILES_NO_DIR) ; do \ |
|
48 # rm -f $(fcnfiledir)/$(script_sub_dir)/$$f ; \ |
|
49 # $(INSTALL_DATA) $(srcdir)/$$f $(fcnfiledir)/$(script_sub_dir)/$$f ; \ |
|
50 # done |
|
51 .PHONY: install |
|
52 |
|
53 uninstall: |
|
54 # for f in $(FCN_FILES_NO_DIR) ; \ |
|
55 # do rm -f $(fcnfiledir)/$(script_sub_dir)/$$f ; \ |
|
56 # done |
|
57 .PHONY: uninstall |
|
58 |
|
59 clean: |
|
60 .PHONY: clean |
|
61 |
|
62 tags: $(SOURCES) |
|
63 ctags $(SOURCES) |
|
64 |
|
65 TAGS: $(SOURCES) |
|
66 etags $(SOURCES) |
|
67 |
|
68 mostlyclean: clean |
|
69 .PHONY: mostlyclean |
|
70 |
|
71 distclean: clean |
|
72 rm -f Makefile |
|
73 .PHONY: distclean |
|
74 |
1391
|
75 maintainer-clean: distclean |
732
|
76 rm -f tags TAGS |
1391
|
77 .PHONY: maintainer-clean |
732
|
78 |
|
79 local-dist: |
|
80 ln $(DISTFILES) ../../`cat ../../.fname`/scripts/startup |
|
81 .PHONY: local-dist |
|
82 |
|
83 dist: |
|
84 ln $(DISTFILES) ../../`cat ../../.fname`/scripts/startup |
|
85 .PHONY: dist |