blob: eada49e89c982a892bbe02ee4f82df3d431899aa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
|
## epix-1.x Makefile.am for top-level directory
##
## Process this file with automake to produce Makefile.in
#if BUILD_CONTRIB
# Must be in this order!
# MAYBE_DIRS = contrib contrib/doc
#endif
# SUBDIRS = . samples doc $(MAYBE_DIRS)
SUBDIRS = . samples doc
# Now stuff for this directory specifically
bin_SCRIPTS = epix elaps flix laps
pkglib_LIBRARIES = libepix.a
pkglib_DATA = epix-lib.sh
include_HEADERS = epix.h
libepix_a_CXXSOURCES = active_screen.cc affine.cc angle_units.cc \
arrow_data.cc arrow_style.cc axis.cc camera.cc circle.cc clipping.cc \
Color_Base.cc Color.cc Color_CMY.cc Color_CMYK.cc Color_Gray.cc \
Color_Neutral.cc Color_RGB.cc Color_Sep.cc Color_Utils.cc \
cropping.cc curves.cc \
data_bins.cc data_file.cc data_mask.cc domain.cc \
eepic.cc facet.cc format.cc frac.cc frame.cc functions.cc \
geometry.cc glyph.cc halfspace.cc hatching.cc \
intersections.cc interval.cc label_data.cc label_style.cc \
legend.cc legend_item.cc legend_tile.cc \
length.cc lens.cc markers.cc marker_style.cc \
mask_diamond.cc mask_ellipse.cc mask_rectangle.cc \
paint_style.cc pairs.cc path.cc path_data.cc \
path_style.cc pen_arrow.cc pen_data.cc pen_fill.cc pen_line.cc \
picture.cc picture_data.cc plane.cc plots.cc pst.cc \
screen.cc screen_crop.cc screen_data.cc screen_mask.cc \
segment.cc spline.cc sphere.cc state.cc surface.cc tikz.cc tile.cc \
triples.cc utils.cc verbatim.cc
# polygon.cc
libepix_a_HDRS = $(libepix_a_CXXSOURCES:.cc=.h) constants.h \
crop_algorithms.h deriv.h edge_data.h enums.h errors.h \
map.h plot_algorithms.h spline_data.h
libepix_a_SOURCES = $(libepix_a_CXXSOURCES) $(libepix_a_HDRS)
libepix_a_LIBADD = $(libepix_a_CXXSOURCES:.cc=.o)
pkginclude_HEADERS = $(libepix_a_HDRS)
man_MANS = epix.1 elaps.1 flix.1 laps.1
if ENABLE_EPIX_EL
EPIX_EL = epix.el
endif
EPIX_CONFFILES = bash_completions $(EPIX_EL)
EPIX_NOTEFILES = AUTHORS BUGS ChangeLog COPYING INSTALL NEWS POST-INSTALL \
README THANKS VERSION
EXTRA_DIST = $(bin_SCRIPTS) $(man_MANS) $(EPIX_CONFFILES) $(EPIX_NOTEFILES) \
$(pkgdata_DATA)
CLEANFILES = *~ $(libepix_a_OBJECTS) $(bin_SCRIPTS) $(bin_SCRIPTS:=-local) \
epix.h epix.1 epix.el
# Headers
epix.h: $(libepix_a_HDRS)
./make_header
# Scripts; we create local variants which will work during the build process
epix elaps flix laps: %: %.in epix.el
sed -e 's%^#! /bin/bash%#! $(BASH_PATH)%;' \
-e 's%@bindir\@%$(bindir)%;' \
-e 's%@pkglibdir\@%$(pkglibdir)%;' \
-e 's%@includedir\@%$(includedir)%;' \
-e 's%@RUNTIME_COMPILER\@%$(RUNTIME_COMPILER)%;' $< > $@
sed -e 's%^#! /bin/bash%#! $(BASH_PATH)%;' \
-e 's%@bindir\@%$(CURDIR)%;' \
-e 's%@pkglibdir\@%$(CURDIR)%;' \
-e 's%@includedir\@%$(CURDIR)%;' \
-e 's%@RUNTIME_COMPILER\@%$(CXX)%;' $< > $@-local
chmod a+x $@ $@-local
# libepix.a
libepix.a: $(libepix_a_OBJECTS)
ar -ru libepix.a $(libepix_a_OBJECTS)
$(RANLIB) libepix.a
# object file dependencies
$(libepix_a_LIBADD): %.o: %.cc %.h
# Manpage
epix.1: epix.1.in
sed -e 's%@docdir\@%$(docdir)%;' $< > $@
# emacs mode
epix.el: epix.el.in
sed -e 's%@docdir\@%$(docdir)%;' $< > $@
# Extra things to install
install-data-local:
@echo; echo "Installing notes and configuration files"
./mkinstalldirs $(DESTDIR)$(docdir)/notes $(DESTDIR)$(docdir)/config
$(INSTALL_DATA) $(EPIX_NOTEFILES) $(DESTDIR)$(docdir)/notes
$(INSTALL_DATA) $(EPIX_CONFFILES) $(DESTDIR)$(docdir)/config
# This is being installed by install-exec, but should not be executable
install-exec-local: install-pkglibDATA
chmod a-x $(DESTDIR)$(pkglibdir)/epix-lib.sh
uninstall-local:
-rm -rf $(DESTDIR)$(docdir)/notes $(DESTDIR)$(docdir)/config
-rmdir $(DESTDIR)$(docdir)
|