681
|
1 # |
|
2 # Makefile for octave's scripts/image 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 = 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 |
|
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 |
683
|
34 all: octtopnm |
681
|
35 .PHONY: all |
|
36 |
683
|
37 octtopnm: octtopnm.o |
686
|
38 $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) octtopnm.o -o octtopnm |
683
|
39 |
681
|
40 install: all |
810
|
41 $(top_srcdir)/mkinstalldirs $(fcnfiledir)/$(script_sub_dir) |
681
|
42 for f in $(FCN_FILES_NO_DIR) ; do \ |
|
43 rm -f $(fcnfiledir)/$(script_sub_dir)/$$f ; \ |
|
44 $(INSTALL_DATA) $(srcdir)/$$f $(fcnfiledir)/$(script_sub_dir)/$$f ; \ |
|
45 done |
810
|
46 $(top_srcdir)/mkinstalldirs $(fcnfiledir)/imagelib |
686
|
47 for f in $(IMAGE_FILES_NO_DIR) ; do \ |
|
48 rm -f $(fcnfiledir)/imagelib/$$f ; \ |
|
49 $(INSTALL_DATA) $(srcdir)/$$f $(fcnfiledir)/imagelib/$$f ; \ |
|
50 done |
810
|
51 $(top_srcdir)/mkinstalldirs $(archlibdir) |
683
|
52 $(INSTALL_PROGRAM) octtopnm $(archlibdir)/octtopnm |
681
|
53 .PHONY: install |
|
54 |
|
55 uninstall: |
|
56 for f in $(FCN_FILES_NO_DIR) ; \ |
|
57 do rm -f $(fcnfiledir)/$(script_sub_dir)/$$f ; \ |
|
58 done |
686
|
59 for f in $(IMAGE_FILES_NO_DIR) ; \ |
|
60 do rm -f $(fcnfiledir)/imagelib/$$f ; \ |
|
61 done |
683
|
62 rm -f $(archlibdir)/octtopnm |
681
|
63 .PHONY: uninstall |
|
64 |
|
65 clean: |
|
66 .PHONY: clean |
|
67 |
|
68 tags: $(SOURCES) |
|
69 ctags $(SOURCES) |
|
70 |
|
71 TAGS: $(SOURCES) |
|
72 etags $(SOURCES) |
|
73 |
|
74 mostlyclean: clean |
|
75 .PHONY: mostlyclean |
|
76 |
|
77 distclean: clean |
|
78 rm -f Makefile |
|
79 .PHONY: distclean |
|
80 |
|
81 realclean: distclean |
|
82 rm -f tags TAGS |
|
83 .PHONY: realclean |
|
84 |
|
85 local-dist: |
689
|
86 ln $(DISTFILES) ../../`cat ../../.fname`/scripts/image |
681
|
87 .PHONY: local-dist |
|
88 |
|
89 dist: |
689
|
90 ln $(DISTFILES) ../../`cat ../../.fname`/scripts/image |
681
|
91 .PHONY: dist |