| 1 |
## Makefile.am for the TeX Live subdirectory texk/psutils/ |
| 2 |
## |
| 3 |
## Copyright (C) 2009-2015 Peter Breitenlohner <[email protected]> |
| 4 |
## You may freely use, modify and/or distribute this file. |
| 5 |
## |
| 6 |
## We want to re-distribute the whole original psutils source tree. |
| 7 |
EXTRA_DIST = $(PSUTILS_TREE) |
| 8 |
## Patches applied to the original source tree |
| 9 |
EXTRA_DIST += psutils-PATCHES |
| 10 |
|
| 11 |
# Files not to be distributed |
| 12 |
include $(srcdir)/../../am/dist_hook.am |
| 13 |
NEVER_NAMES += $(NEVER_NAMES_SUB) |
| 14 |
|
| 15 |
AM_CPPFLAGS = -I$(srcdir)/$(PSUTILS_TREE) $(KPATHSEA_INCLUDES) $(LIBPAPER_INCLUDES) |
| 16 |
AM_CFLAGS = $(WARNING_CFLAGS) |
| 17 |
|
| 18 |
noinst_LIBRARIES = libpsutils.a |
| 19 |
|
| 20 |
libpsutils_a_SOURCES = \ |
| 21 |
binary-io.h \ |
| 22 |
paper-size.c \ |
| 23 |
progname.c \ |
| 24 |
progname.h \ |
| 25 |
texlive.h \ |
| 26 |
verror.h \ |
| 27 |
verror.c \ |
| 28 |
xvasprintf.h \ |
| 29 |
@PSUTILS_TREE@/psspec.c \ |
| 30 |
@PSUTILS_TREE@/psspec.h \ |
| 31 |
@PSUTILS_TREE@/psutil.c \ |
| 32 |
@PSUTILS_TREE@/psutil.h |
| 33 |
|
| 34 |
$(libpsutils_a_OBJECTS): $(KPATHSEA_DEPEND) $(LIBPAPER_DEPEND) |
| 35 |
|
| 36 |
bin_PROGRAMS = epsffit psbook psnup psresize psselect pstops |
| 37 |
|
| 38 |
epsffit_SOURCES = @PSUTILS_TREE@/epsffit.c |
| 39 |
|
| 40 |
psbook_SOURCES = @PSUTILS_TREE@/psbook.c |
| 41 |
|
| 42 |
psnup_SOURCES = @PSUTILS_TREE@/psnup.c |
| 43 |
|
| 44 |
psresize_SOURCES = @PSUTILS_TREE@/psresize.c |
| 45 |
|
| 46 |
psselect_SOURCES = @PSUTILS_TREE@/psselect.c |
| 47 |
|
| 48 |
pstops_SOURCES = @PSUTILS_TREE@/pstops.c |
| 49 |
|
| 50 |
$(epsffit_OBJECTS) $(psbook_OBJECTS) $(psnup_OBJECTS) \ |
| 51 |
$(psresize_OBJECTS) $(psselect_OBJECTS) $(pstops_OBJECTS): libpsutils.a |
| 52 |
|
| 53 |
LDADD = libpsutils.a $(KPATHSEA_LIBS) $(LIBPAPER_LIBS) |
| 54 |
|
| 55 |
perl_scripts = \ |
| 56 |
extractres \ |
| 57 |
includeres \ |
| 58 |
psjoin |
| 59 |
|
| 60 |
scriptsdir = texmf-dist/scripts/psutils |
| 61 |
nodist_bin_SCRIPTS = |
| 62 |
|
| 63 |
include $(srcdir)/../../am/script_links.am |
| 64 |
|
| 65 |
texmfdir = $(datarootdir)/$(scriptsdir) |
| 66 |
texmf_SCRIPTS = $(perl_scripts:=.pl) |
| 67 |
|
| 68 |
install-data-hook: install-perl-links |
| 69 |
|
| 70 |
uninstall-hook: uninstall-links |
| 71 |
|
| 72 |
## Manpages |
| 73 |
## |
| 74 |
man1_MANS = \ |
| 75 |
@PSUTILS_TREE@/epsffit.1 \ |
| 76 |
@PSUTILS_TREE@/extractres.1 \ |
| 77 |
@PSUTILS_TREE@/includeres.1 \ |
| 78 |
@PSUTILS_TREE@/psbook.1 \ |
| 79 |
@PSUTILS_TREE@/psjoin.1 \ |
| 80 |
@PSUTILS_TREE@/psnup.1 \ |
| 81 |
@PSUTILS_TREE@/psresize.1 \ |
| 82 |
@PSUTILS_TREE@/psselect.1 \ |
| 83 |
@PSUTILS_TREE@/pstops.1 \ |
| 84 |
@PSUTILS_TREE@/psutils.1 |
| 85 |
|
| 86 |
## Data |
| 87 |
## |
| 88 |
configdatadir = $(datarootdir)/texmf-dist/psutils |
| 89 |
dist_configdata_DATA = data/paper.cfg |
| 90 |
|
| 91 |
## Rebuild libkpathsea |
| 92 |
@KPATHSEA_RULE@ |
| 93 |
## Rebuild libpaper |
| 94 |
@LIBPAPER_RULE@ |
| 95 |
|
| 96 |
## Tests |
| 97 |
## |
| 98 |
TESTS = psutils.test |
| 99 |
psutils.log: epsffit$(EXEEXT) psbook$(EXEEXT) psnup$(EXEEXT) psresize$(EXEEXT) psselect$(EXEEXT) pstops$(EXEEXT) |
| 100 |
EXTRA_DIST += $(TESTS) |
| 101 |
|
| 102 |
## psutils.test |
| 103 |
EXTRA_DIST += tests/play.ps tests/playbook.2 tests/playnup.2 tests/playnup1.2 \ |
| 104 |
tests/playps.2 tests/playres.ps tests/playsel.2 tests/playsel1.2 \ |
| 105 |
tests/plot.eps tests/ploth.eps tests/plotm.eps tests/plotv.eps |
| 106 |
DISTCLEANFILES = play*.2 play*.ps plot*.eps |
| 107 |
|