diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2014-01-13 13:03:22 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2014-01-13 13:03:22 +0000 |
commit | a8fb135db314d7fb3407051c5925eec99a0c3097 (patch) | |
tree | 6a5a41ec53e3d4f27222d1c02794cdcfc57dc55c /Build/source/libs/libpaper/Makefile.am | |
parent | f028526edcba2838df64e33e27a36ef43b13cd64 (diff) |
Rename libs/paper => libs/libpaper. Remove utils/songs
git-svn-id: svn://tug.org/texlive/trunk@32654 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/libpaper/Makefile.am')
-rw-r--r-- | Build/source/libs/libpaper/Makefile.am | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/Build/source/libs/libpaper/Makefile.am b/Build/source/libs/libpaper/Makefile.am new file mode 100644 index 00000000000..6a12c84eca2 --- /dev/null +++ b/Build/source/libs/libpaper/Makefile.am @@ -0,0 +1,69 @@ +## Proxy Makefile.am to build libpaper for TeX Live. +## +## Copyright (C) 2013, 2014 Peter Breitenlohner <tex-live@tug.org> +## +## This file is free software; the copyright holder +## gives unlimited permission to copy and/or distribute it, +## with or without modifications, as long as this notice is preserved. +## +## We want to re-distribute the whole original harfbuzz source tree. +## +EXTRA_DIST = $(LIBPAPER_TREE) + +## Changes applied to the original source tree +## +EXTRA_DIST += $(LIBPAPER_TREE)-PATCHES + +# in case of an SVN repository +dist-hook: + rm -rf `find $(distdir) -name .svn -o -name .deps -o -name .dirstamp -o -name '*.$(OBJEXT)'` + +AM_CPPFLAGS = -I$(top_srcdir)/$(LIBPAPER_TREE)/lib $(WARNING_CFLAGS) + +SUBDIRS = . include + +noinst_LIBRARIES = libpaper.a + +libpaper_a_SOURCES = \ + @LIBPAPER_TREE@/lib/dimen.c \ + @LIBPAPER_TREE@/lib/dimen.h \ + @LIBPAPER_TREE@/lib/paper.c \ + @LIBPAPER_TREE@/lib/paper.h \ + @LIBPAPER_TREE@/lib/paperspecs.h + +LDADD = libpaper.a + +bin_PROGRAMS = paperconf + +paperconf_SOURCES = @LIBPAPER_TREE@/src/paperconf.c + +man_MANS = paperconf.1 + +## Tests +## +if build +dist_check_SCRIPTS = paper.test +TESTS = paper.test +endif build + +# Rebuild +rebuild_prereq = +rebuild_target = all +CLEANFILES = + +include $(srcdir)/../../am/rebuild.am + +if MAINTAINER_MODE +BUILT_SOURCES = $(LIBPAPER_TREE)/lib/paperspecs.h + +paperspecs.h: paperspecs Makefile + echo ' /* This file has been automaticaly generated.' >$@ + echo ' Edit paperspecs to make changes to the papers specifications. */' >>$@ + echo >>$@ + env LANG=C LC_ALL=C $(AWK) '{ factor = 1.0; \ + if ($$4 == "mm") factor = 72.0 / 25.4; \ + if ($$4 == "in") factor = 72.0; \ + printf(" { \"%s\", %5f, %5f },\n", \ + $$1, $$2 * factor, $$3 * factor); }' < $< >> $@ +endif MAINTAINER_MODE + |