summaryrefslogtreecommitdiff
path: root/Build/source/utils/dialog/Makefile.am
blob: efad97e26bf0aba33aa200cbde859c59d70daddb (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
## Proxy Makefile.am to build dialog for TeX Live.
##
##   Copyright (C) 2009 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.
##
## With current automake (1.10.2) 'make distcheck' fails when
## DISTFILES contains a directory and files in that directory.
## Thus nodist_* for all files in $(DIALOG_TREE).
EXTRA_DIST = $(DIALOG_TREE)

# in case of an SVN repository
dist-hook:
	rm -rf `find $(distdir)/$(DIALOG_TREE) -name .svn`

if build

nodist_man1_MANS = $(DIALOG_TREE)/dialog.1

bin_PROGRAMS = $(DIALOG_BUILD)/dialog

$(DIALOG_BUILD)/dialog$(EXEEXT):
	cd $(DIALOG_BUILD) && $(MAKE) $(AM_MAKEFLAGS) all

distclean-local:
	cd $(DIALOG_BUILD) && $(MAKE) $(AM_MAKEFLAGS) distclean

else !build
distclean-local:
endif !build

__DIALOG_BUILD__dialog_SOURCES =