summaryrefslogtreecommitdiff
path: root/Build/source/utils/dialog/Makefile.am
blob: d58e007661154662181de821c71d74d6db1a37cf (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
## Proxy Makefile.am to build dialog for TeX Live.
##
##   Copyright (C) 2009, 2010 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.
##
ACLOCAL_AMFLAGS = -I ../../m4

## The dialog-1.1-YYYYMMDD build system is good to build the binary,
## but lacks many required targets.
##
## DIALOG_TREE is the unmodified source tree,
## DIALOG_BUILD is the build tree (renamed after configure).

# install dialog as tcdialog
program_transform_name = 's,^,tc,'

# We want to re-distribute the whole original dialog source tree.
EXTRA_DIST = $(DIALOG_TREE)

# Files not to distribute, also in case of an SVN repository
dist-hook:
	cd $(distdir)/$(DIALOG_TREE) && \
	  rm -rf config.log config.status dialog$(EXEEXT) dialog-config \
	    dlg_config.h headers-sh makefile samples/install/makefile \
	    *.a *.o  `find -name .svn`

nodist_man1_MANS = $(DIALOG_TREE)/dialog.1

bin_PROGRAMS = $(DIALOG_TREE)/dialog

$(DIALOG_TREE)/dialog$(EXEEXT): config.force
	cd $(DIALOG_TREE) && $(MAKE) $(AM_MAKEFLAGS) all

config.force:
	echo timestamp >config.force
	CONFIG_SHELL=$(SHELL) && export CONFIG_SHELL && \
	  eval $(SHELL) $(srcdir)/configure "`./config.status --config`"

distclean-local:
	if test -f "$(DIALOG_TREE)/Makefile"; then \
	  cd $(DIALOG_TREE) && $(MAKE) $(AM_MAKEFLAGS) distclean; \
	else :; fi

__DIALOG_TREE__dialog_SOURCES =

DISTCLEANFILES = config.force