681
|
1 # |
|
2 # Makefile for octave's scripts/image directory |
|
3 # |
|
4 # John W. Eaton |
1452
|
5 # jwe@bevo.che.wisc.edu |
|
6 # University of Wisconsin-Madison |
681
|
7 # Department of Chemical Engineering |
|
8 |
682
|
9 TOPDIR = ../.. |
681
|
10 |
|
11 script_sub_dir = image |
|
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 |
2485
|
23 SOURCES = *.m |
812
|
24 IMAGES = *.img |
681
|
25 |
812
|
26 DISTFILES = Makefile.in $(SOURCES) $(IMAGES) |
681
|
27 |
|
28 FCN_FILES = $(wildcard $(srcdir)/*.m) |
|
29 FCN_FILES_NO_DIR = $(notdir $(FCN_FILES)) |
|
30 |
686
|
31 IMAGE_FILES = $(wildcard $(srcdir)/*.img) |
|
32 IMAGE_FILES_NO_DIR = $(notdir $(IMAGE_FILES)) |
|
33 |
2624
|
34 BINDISTFILES = $(FCN_FILES) $(IMAGE_FILES) |
|
35 |
1507
|
36 all: |
681
|
37 .PHONY: all |
|
38 |
979
|
39 install: |
810
|
40 $(top_srcdir)/mkinstalldirs $(fcnfiledir)/$(script_sub_dir) |
681
|
41 for f in $(FCN_FILES_NO_DIR) ; do \ |
|
42 rm -f $(fcnfiledir)/$(script_sub_dir)/$$f ; \ |
|
43 $(INSTALL_DATA) $(srcdir)/$$f $(fcnfiledir)/$(script_sub_dir)/$$f ; \ |
|
44 done |
860
|
45 $(top_srcdir)/mkinstalldirs $(imagedir) |
686
|
46 for f in $(IMAGE_FILES_NO_DIR) ; do \ |
860
|
47 rm -f $(imagedir)/$$f ; \ |
|
48 $(INSTALL_DATA) $(srcdir)/$$f $(imagedir)/$$f ; \ |
686
|
49 done |
810
|
50 $(top_srcdir)/mkinstalldirs $(archlibdir) |
681
|
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 |
686
|
57 for f in $(IMAGE_FILES_NO_DIR) ; \ |
860
|
58 do rm -f $(imagedir)/$$f ; \ |
686
|
59 done |
681
|
60 .PHONY: uninstall |
|
61 |
|
62 clean: |
|
63 .PHONY: clean |
|
64 |
|
65 tags: $(SOURCES) |
|
66 ctags $(SOURCES) |
|
67 |
|
68 TAGS: $(SOURCES) |
|
69 etags $(SOURCES) |
|
70 |
|
71 mostlyclean: clean |
|
72 .PHONY: mostlyclean |
|
73 |
|
74 distclean: clean |
|
75 rm -f Makefile |
|
76 .PHONY: distclean |
|
77 |
1391
|
78 maintainer-clean: distclean |
681
|
79 rm -f tags TAGS |
1391
|
80 .PHONY: maintainer-clean |
681
|
81 |
|
82 dist: |
689
|
83 ln $(DISTFILES) ../../`cat ../../.fname`/scripts/image |
681
|
84 .PHONY: dist |
2624
|
85 |
|
86 bin-dist: |
|
87 ln $(BINDISTFILES) ../../`cat ../../.fname`/scripts/image |
|
88 .PHONY: bin-dist |