| 1 |
## Makefile.am for the TeX Live subdirectory texk/xdvik/ |
| 2 |
## |
| 3 |
## Copyright (C) 2017 Karl Berry <[email protected]> |
| 4 |
## Copyright (C) 2009-2015 Peter Breitenlohner <[email protected]> |
| 5 |
## You may freely use, modify and/or distribute this file. |
| 6 |
## |
| 7 |
AM_CFLAGS = $(WARNING_CFLAGS) |
| 8 |
|
| 9 |
SUBDIRS = squeeze . tests |
| 10 |
|
| 11 |
include common.am |
| 12 |
|
| 13 |
AM_CPPFLAGS = -I$(srcdir)/gui $(common_includes) |
| 14 |
|
| 15 |
## The object files created from ./*.c and gui/*.c are used for both |
| 16 |
## ./xdvi-bin and tests/run_tests. |
| 17 |
## In order not to compile them twice, we put them into a library. |
| 18 |
noinst_LIBRARIES = libxdvi.a |
| 19 |
|
| 20 |
nodist_libxdvi_a_SOURCES = psheader.c |
| 21 |
|
| 22 |
libxdvi_a_SOURCES = \ |
| 23 |
alloc-debug.h \ |
| 24 |
browser.c \ |
| 25 |
browser.h \ |
| 26 |
c-openmx.h \ |
| 27 |
dl_list.c \ |
| 28 |
dl_list.h \ |
| 29 |
dvi-draw.c \ |
| 30 |
dvi-draw.h \ |
| 31 |
dvi-init.c \ |
| 32 |
dvi-init.h \ |
| 33 |
dvi.h \ |
| 34 |
dvisel.c \ |
| 35 |
dvisel.h \ |
| 36 |
encodings.c \ |
| 37 |
encodings.h \ |
| 38 |
events.c \ |
| 39 |
events.h \ |
| 40 |
exit-handlers.c \ |
| 41 |
exit-handlers.h \ |
| 42 |
filehist.c \ |
| 43 |
filehist.h \ |
| 44 |
font-open.c \ |
| 45 |
font-open.h \ |
| 46 |
ft.c \ |
| 47 |
gf.c \ |
| 48 |
hypertex.c \ |
| 49 |
hypertex.h \ |
| 50 |
image-magick.c \ |
| 51 |
image-magick.h \ |
| 52 |
mime.c \ |
| 53 |
mime.h \ |
| 54 |
my-snprintf.c \ |
| 55 |
my-snprintf.h \ |
| 56 |
my-vsnprintf.c \ |
| 57 |
my-vsnprintf.h \ |
| 58 |
pagehist.c \ |
| 59 |
pagehist.h \ |
| 60 |
pk.c \ |
| 61 |
print-internal.c \ |
| 62 |
print-internal.h \ |
| 63 |
psdps.c \ |
| 64 |
psdps.h \ |
| 65 |
psgs.c \ |
| 66 |
psgs.h \ |
| 67 |
psnews.c \ |
| 68 |
psnews.h \ |
| 69 |
search-internal.c \ |
| 70 |
search-internal.h \ |
| 71 |
special.c \ |
| 72 |
special.h \ |
| 73 |
string-utils.c \ |
| 74 |
string-utils.h \ |
| 75 |
string_list.c \ |
| 76 |
string_list.h \ |
| 77 |
translations.h \ |
| 78 |
util.c \ |
| 79 |
util.h \ |
| 80 |
version.h \ |
| 81 |
vf.c \ |
| 82 |
x_util.c \ |
| 83 |
x_util.h \ |
| 84 |
xdvi.c \ |
| 85 |
xdvi-config.h \ |
| 86 |
xdvi-debug.h \ |
| 87 |
xserver-info.c \ |
| 88 |
xdvi.h \ |
| 89 |
xserver-info.h |
| 90 |
|
| 91 |
## We cannot easily use two different libraries due to the mutual |
| 92 |
## dependencies between routines in ./*.c and gui/*.c. |
| 93 |
libxdvi_a_SOURCES += \ |
| 94 |
gui/Panner.c \ |
| 95 |
gui/Panner.h \ |
| 96 |
gui/PannerP.h \ |
| 97 |
gui/Tip.c \ |
| 98 |
gui/Tip.h \ |
| 99 |
gui/TipP.h \ |
| 100 |
gui/help-window.c \ |
| 101 |
gui/help-window.h \ |
| 102 |
gui/mag.c \ |
| 103 |
gui/mag.h \ |
| 104 |
gui/menu.c \ |
| 105 |
gui/menu.h \ |
| 106 |
gui/message-window.c \ |
| 107 |
gui/message-window.h \ |
| 108 |
gui/pagesel.c \ |
| 109 |
gui/pagesel.h \ |
| 110 |
gui/print-dialog.c \ |
| 111 |
gui/print-dialog.h \ |
| 112 |
gui/print-log.c \ |
| 113 |
gui/print-log.h \ |
| 114 |
gui/search-dialog.c \ |
| 115 |
gui/search-dialog.h \ |
| 116 |
gui/selection.c \ |
| 117 |
gui/selection.h \ |
| 118 |
gui/sfDir.c \ |
| 119 |
gui/sfDir.h \ |
| 120 |
gui/sfDraw.c \ |
| 121 |
gui/sfDraw.h \ |
| 122 |
gui/sfPath.c \ |
| 123 |
gui/sfPath.h \ |
| 124 |
gui/sfSelFile.c \ |
| 125 |
gui/sfSelFile.h \ |
| 126 |
gui/sfinternal.h \ |
| 127 |
gui/statusline.c \ |
| 128 |
gui/statusline.h \ |
| 129 |
gui/topic-window.c \ |
| 130 |
gui/topic-window.h \ |
| 131 |
gui/xaw_bitmaps.c \ |
| 132 |
gui/xaw_bitmaps.h \ |
| 133 |
gui/xaw_menu.c \ |
| 134 |
gui/xaw_menu.h \ |
| 135 |
gui/xicon.c \ |
| 136 |
gui/xicon.h \ |
| 137 |
gui/xlwradio.c \ |
| 138 |
gui/xlwradio.h \ |
| 139 |
gui/xlwradioP.h \ |
| 140 |
gui/xm_colorsel.c \ |
| 141 |
gui/xm_colorsel.h \ |
| 142 |
gui/xm_filesel.c \ |
| 143 |
gui/xm_menu.c \ |
| 144 |
gui/xm_menu.h \ |
| 145 |
gui/xm_prefs.c \ |
| 146 |
gui/xm_prefs.h \ |
| 147 |
gui/xm_prefsP.h \ |
| 148 |
gui/xm_prefs_appearance.c \ |
| 149 |
gui/xm_prefs_appearance.h \ |
| 150 |
gui/xm_prefs_fonts.c \ |
| 151 |
gui/xm_prefs_fonts.h \ |
| 152 |
gui/xm_prefs_helpers.c \ |
| 153 |
gui/xm_prefs_helpers.h \ |
| 154 |
gui/xm_prefs_page.c \ |
| 155 |
gui/xm_prefs_page.h \ |
| 156 |
gui/xm_prefs_scroll.c \ |
| 157 |
gui/xm_prefs_scroll.h \ |
| 158 |
gui/xm_toolbar.c \ |
| 159 |
gui/xm_toolbar.h |
| 160 |
|
| 161 |
$(libxdvi_a_OBJECTS): config.force |
| 162 |
|
| 163 |
config.force: $(common_dependencies) |
| 164 |
echo timestamp >config.force |
| 165 |
$(SHELL) ./config.status --recheck |
| 166 |
|
| 167 |
DISTCLEANFILES = config.force |
| 168 |
|
| 169 |
bin_SCRIPTS = xdvi |
| 170 |
|
| 171 |
bin_PROGRAMS = xdvi-bin |
| 172 |
|
| 173 |
xdvi_bin_SOURCES = main.c |
| 174 |
|
| 175 |
$(xdvi_bin_OBJECTS): libxdvi.a $(common_dependencies) |
| 176 |
|
| 177 |
LDADD = libxdvi.a $(common_ldadd) |
| 178 |
|
| 179 |
# When cross-compiling, EXEEXT for the build and host systems may differ. |
| 180 |
# Thus we depend on the auxiliary file squeeze/stamp-squeeze. |
| 181 |
psheader.c: psheader.txt squeeze/stamp-squeeze |
| 182 |
$(AM_V_GEN)squeeze/squeeze $(srcdir)/psheader.txt $@ |
| 183 |
|
| 184 |
squeeze/stamp-squeeze: |
| 185 |
cd squeeze && $(MAKE) $(AM_MAKEFLAGS) stamp-squeeze |
| 186 |
|
| 187 |
EXTRA_DIST = psheader.txt |
| 188 |
CLEANFILES = psheader.c |
| 189 |
|
| 190 |
nodist_man1_MANS = xdvi.1 |
| 191 |
|
| 192 |
xdvi.1: xdvi.1.in sedscript |
| 193 |
$(AM_V_GEN)sed -f sedscript <$(srcdir)/xdvi.1.in >$@ |
| 194 |
|
| 195 |
sedscript: mksedscript CHANGES Makefile c-auto.h |
| 196 |
$(AM_V_GEN)$(SHELL) $(srcdir)/mksedscript $(srcdir) $(DEFS) $(PS_DEF) >$@ |
| 197 |
|
| 198 |
EXTRA_DIST += mksedscript xdvi.1.in |
| 199 |
CLEANFILES += sedscript xdvi.1 |
| 200 |
|
| 201 |
xdvidir = $(datarootdir)/texmf-dist/xdvi |
| 202 |
dist_xdvi_DATA = texmf/XDvi |
| 203 |
|
| 204 |
pixmapdir = $(datarootdir)/texmf-dist/xdvi/pixmap |
| 205 |
dist_pixmap_DATA = pixmaps/toolbar.xpm pixmaps/toolbar2.xpm |
| 206 |
|
| 207 |
dvipsconfdir = $(datarootdir)/texmf-dist/dvips/xdvi |
| 208 |
dist_noinst_DATA = texmf/config.xdvi |
| 209 |
|
| 210 |
desktopdir = $(datarootdir)/applications |
| 211 |
desktop_DATA = xdvi.desktop |
| 212 |
|
| 213 |
install-data-hook: |
| 214 |
@echo " $(MKDIR_P) '$(DESTDIR)$(dvipsconfdir)'"; \ |
| 215 |
$(MKDIR_P) "$(DESTDIR)$(dvipsconfdir)" || exit 1; \ |
| 216 |
if grep "original config.xdvi --" "$(DESTDIR)$(dvipsconfdir)/config.xdvi" >/dev/null 2>&1 \ |
| 217 |
|| test ! -r "$(DESTDIR)$(dvipsconfdir)/config.xdvi"; then \ |
| 218 |
echo " $(INSTALL_DATA) '$(srcdir)/texmf/config.xdvi' '$(DESTDIR)$(dvipsconfdir)/config.xdvi'"; \ |
| 219 |
$(INSTALL_DATA) "$(srcdir)/texmf/config.xdvi" "$(DESTDIR)$(dvipsconfdir)/config.xdvi"; \ |
| 220 |
else :; fi |
| 221 |
|
| 222 |
uninstall-hook: |
| 223 |
@if grep "original config.xdvi --" "$(DESTDIR)$(dvipsconfdir)/config.xdvi" >/dev/null 2>&1 \ |
| 224 |
|| test ! -r "$(DESTDIR)$(dvipsconfdir)/config.xdvi"; then \ |
| 225 |
echo " rm -f '$(DESTDIR)$(dvipsconfdir)/config.xdvi'"; \ |
| 226 |
rm -f "$(DESTDIR)$(dvipsconfdir)/config.xdvi"; \ |
| 227 |
else :; fi |
| 228 |
|
| 229 |
## Not used |
| 230 |
## |
| 231 |
EXTRA_DIST += \ |
| 232 |
BUGS \ |
| 233 |
CHANGES \ |
| 234 |
FAQ \ |
| 235 |
LESSTIF-BUGS \ |
| 236 |
README.t1fonts \ |
| 237 |
README.t1mapper \ |
| 238 |
pixmaps/drag_horiz.xbm \ |
| 239 |
pixmaps/drag_horiz_mask.xbm \ |
| 240 |
pixmaps/drag_omni.xbm \ |
| 241 |
pixmaps/drag_omni_mask.xbm \ |
| 242 |
pixmaps/drag_vert.xbm \ |
| 243 |
pixmaps/drag_vert_mask.xbm \ |
| 244 |
pixmaps/fist.xbm \ |
| 245 |
pixmaps/fist_mask.xbm \ |
| 246 |
pixmaps/hand.xbm \ |
| 247 |
pixmaps/hand_mask.xbm \ |
| 248 |
pixmaps/magglass.xbm \ |
| 249 |
pixmaps/magglass_mask.xbm \ |
| 250 |
pixmaps/time16.xbm \ |
| 251 |
pixmaps/time16_mask.xbm \ |
| 252 |
pixmaps/xdvi16x16.xpm \ |
| 253 |
pixmaps/xdvi32x32.xpm \ |
| 254 |
pixmaps/xdvi48x48.xpm \ |
| 255 |
t1mapper \ |
| 256 |
t1mapper.1 \ |
| 257 |
texmf-alt/README \ |
| 258 |
texmf-alt/charter2.map \ |
| 259 |
texmf-alt/lucida.map \ |
| 260 |
texmf-alt/marvosym.map \ |
| 261 |
texmf-alt/xdvifont.map \ |
| 262 |
texmf-alt/xypic.map \ |
| 263 |
xdvi-search.el \ |
| 264 |
xdvi.icon \ |
| 265 |
xdvizilla \ |
| 266 |
xdvizilla.1 |
| 267 |
|