| 1 |
## $Id: texprof.am 72628 2024-10-23 06:54:27Z mruckert $ |
| 2 |
## texk/web2c/texprofdir/am/texprof.am: Makefile fragment for TeXprof |
| 3 |
## |
| 4 |
## Copyright 2024 Martin Ruckert <[email protected]> |
| 5 |
## You may freely use, modify and/or distribute this file. |
| 6 |
|
| 7 |
if TEXPROF |
| 8 |
bin_PROGRAMS += texprof texprofile |
| 9 |
|
| 10 |
# convenience target to build all the programs here. |
| 11 |
texprofall: texprof texprofile |
| 12 |
|
| 13 |
# See hitex.am for comments about handling man. |
| 14 |
man1_MANS = texprofdir/man/texprof.man texprofdir/man/texprofile.man |
| 15 |
endif TEXPROF |
| 16 |
|
| 17 |
texprof_CPPFLAGS = $(AM_CPPFLAGS) |
| 18 |
texprof_CPPFLAGS += -I$(srcdir)/libmd5 |
| 19 |
texprof_CPPFLAGS += -DINIT -DSTAT -DWEB2CVERSION="\"${WEB2CVERSION}\"" |
| 20 |
# -DDEBUG drops into an interactive debugging session. |
| 21 |
texprof_LDADD = $(KPATHSEA_LIBS) libmd5.a |
| 22 |
texprof_DEPENDENCIES = $(KPATHSEA_DEPEND) libmd5.a |
| 23 |
# |
| 24 |
texprofile_CPPFLAGS = $(AM_CPPFLAGS) |
| 25 |
texprofile_LDADD = |
| 26 |
texprofile_DEPENDENCIES = |
| 27 |
# |
| 28 |
# TeXprof CWEB sources |
| 29 |
texprof_web = texprofdir/texprof.w |
| 30 |
texprofile_web = texprofdir/texprofile.w |
| 31 |
|
| 32 |
# Creating several files: need stamp file and two rules with identical recipes |
| 33 |
texprof_ctangle_sh = CWEBINPUTS=$(srcdir)/texprofdir AM_V_P=$(AM_V_P) $(SHELL) ./tangle-sh $@ $(CTANGLE) |
| 34 |
|
| 35 |
# For each cweb (.w) source file, list the files generated. |
| 36 |
texprof_c = texprof.c |
| 37 |
texprofile_c = texprofile.c |
| 38 |
|
| 39 |
$(texprof_c): texprof-tangle |
| 40 |
$(texprofile_c): texprofile-tangle |
| 41 |
|
| 42 |
# |
| 43 |
texprof-tangle: ctangle$(EXEEXT) texprofdir/texprof.w tangle-sh |
| 44 |
$(texprof_ctangle_sh) texprof |
| 45 |
|
| 46 |
texprofile-tangle: ctangle$(EXEEXT) texprofdir/texprofile.w tangle-sh |
| 47 |
$(texprof_ctangle_sh) texprofile |
| 48 |
|
| 49 |
EXTRA_DIST += texprofdir/ChangeLog $(texprof_web) $(texprofile_web) |
| 50 |
|
| 51 |
DISTCLEANFILES += $(nodist_texprof_SOURCES) |
| 52 |
DISTCLEANFILES += texprofile-tangle texprof-tangle |
| 53 |
|
| 54 |
## TeXprof tests |
| 55 |
# |
| 56 |
texprof_tests = texprofdir/tests/hello.test |
| 57 |
|
| 58 |
texprofdir/tests/hello.log: texprof$(EXEEXT) texprofile$(EXEEXT) |
| 59 |
|
| 60 |
EXTRA_DIST += $(texprof_tests) |
| 61 |
|
| 62 |
if TEXPROF |
| 63 |
TESTS += $(texprof_tests) |
| 64 |
endif TEXPROF |
| 65 |
|
| 66 |
## hello.test |
| 67 |
EXTRA_DIST += texprofdir/tests/hello.tex |
| 68 |
DISTCLEANFILES += hello.log |
| 69 |
|
| 70 |
# (end of texprof.am) |