5648
|
1 TOPDIR = ../../.. |
|
2 |
|
3 srcdir = @srcdir@ |
|
4 top_srcdir = @top_srcdir@ |
|
5 VPATH = @srcdir@ |
|
6 |
|
7 include $(TOPDIR)/Makeconf |
|
8 |
5708
|
9 SOURCES = sparseimages.m |
5648
|
10 |
5708
|
11 SPARSEIMAGES_1 = gplot grid spmatrix spchol spcholperm |
|
12 SPARSEIMAGES = \ |
|
13 $(addsuffix .eps, $(SPARSEIMAGES_1)) \ |
|
14 $(addsuffix .png, $(SPARSEIMAGES_1)) \ |
5934
|
15 $(addsuffix .txt, $(SPARSEIMAGES_1)) \ |
|
16 $(addsuffix .pdf, $(SPARSEIMAGES_1)) |
|
17 |
|
18 IMAGES = $(SPARSEIMAGES) |
5648
|
19 |
5708
|
20 DISTFILES = Makefile.in $(SOURCES) $(IMAGES) |
5648
|
21 |
5708
|
22 all: $(IMAGES) |
5648
|
23 .PHONY: all |
|
24 |
5708
|
25 define run-octave |
5835
|
26 $(TOPDIR)/run-octave -f -q -H -p $(srcdir) \ |
5708
|
27 --eval "$(notdir $(basename $<)) ('$(notdir $(basename $@))', '$(patsubst .%,%, $(suffix $@))')" |
|
28 endef |
|
29 |
|
30 $(SPARSEIMAGES): sparseimages.m |
|
31 $(run-octave) |
|
32 |
|
33 %.pdf : %.eps |
5934
|
34 if [ -f $< ] ; then $(GHOSTSCRIPT) -dBATCH -dEPSCrop -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=$@ $< ; fi |
5648
|
35 |
|
36 install install-strip: |
|
37 .PHONY: install install-strip |
|
38 |
|
39 uninstall: |
|
40 .PHONY: uninstall |
|
41 |
|
42 tags: $(SOURCES) |
|
43 ctags $(SOURCES) |
|
44 |
|
45 TAGS: $(SOURCES) |
|
46 etags $(SOURCES) |
|
47 |
|
48 clean: |
|
49 .PHONY: clean |
|
50 |
|
51 mostlyclean: |
|
52 .PHONY: mostlyclean |
|
53 |
|
54 distclean: clean |
|
55 rm -f Makefile |
|
56 .PHONY: distclean |
|
57 |
|
58 maintainer-clean: distclean |
|
59 rm -f tags TAGS |
5708
|
60 rm -f $(IMAGES) |
5648
|
61 .PHONY: maintainer-clean |
|
62 |
|
63 dist: |
|
64 ln $(DISTFILES) ../../../`cat ../../../.fname`/doc/interpreter/images |
|
65 .PHONY: dist |