File: autoconf.mk.in

package info (click to toggle)
darcs 2.0.2-3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 6,400 kB
  • ctags: 1,048
  • sloc: haskell: 24,937; perl: 9,736; sh: 3,369; ansic: 1,913; makefile: 17; xml: 14
file content (127 lines) | stat: -rw-r--r-- 3,414 bytes parent folder | download
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
#
# System properties as determined by Autoconf.
#
# @configure_input@
#
prefix		:= @prefix@
exec_prefix	:= @exec_prefix@
bindir		:= @bindir@
sbindir		:= @sbindir@
datarootdir	:= @datarootdir@
mandir		:= @mandir@
datadir		:= @datadir@
sysconfdir	:= @sysconfdir@
libexecdir	:= @libexecdir@
PACKAGE_TARNAME := @PACKAGE_TARNAME@
docdir		:= @docdir@

DARCS_VERSION	:= @DARCS_VERSION@
DEFS		:= @DEFS@
CPPFLAGS	:= @CPPFLAGS@ @DEFS@
CFLAGS		:= @CFLAGS@
OPTCCFLAGS      := $(addprefix -optc,$(CFLAGS) $(CPPFLAGS)) $(addprefix -opta,$(CFLAGS))
LDFLAGS		:= @LDFLAGS@
OPTLLDFLAGS     := $(addprefix -optl,$(LDFLAGS))
LIBS            := @LIBS@
OPTLLIBS        := $(filter-out -%,$(LIBS)) $(addprefix -optl,$(filter -%,$(LIBS)))
GHCFLAGS	:= @GHCFLAGS@ @CPPFLAGS@ @DEFS@
USE_GNULIBSHA1  := @USE_GNULIBSHA1@
HAVE_HTTP       := @HAVE_HTTP@
HAVE_CURSES     := @HAVE_CURSES@
HAVE_LIBCURL    := @HAVE_LIBCURL@
HAVE_LIBWWW     := @HAVE_LIBWWW@
HAVE_MAPI       := @HAVE_MAPI@
HAVE_TERMIO_H   := @HAVE_TERMIO_H@
SYS             := @SYS@
WXFLAGS		:= @WXFLAGS@

GHC		:= @GHC@
INSTALL		:= @INSTALL@
INSTALL_DATA   	:= @INSTALL_DATA@
LATEX		:= @LATEX@
PDFLATEX	:= @PDFLATEX@
DVIPS		:= @DVIPS@
MAKEMANUAL      := @MAKEMANUAL@
PREPROCHTML	:= @PREPROCHTML@
MAKENSIS	:= @MAKENSIS@
HADDOCK_VERSION := @HADDOCK_VERSION@

all : config @TARGETS@ microbench

install: all @INSTALLWHAT@

ifeq ('@I_AM_IN_REPO@', 'yes')
release/STATE src/ThisVersion.lhs doc/index.html: _darcs/hashed_inventory src/ThisVersion.lhs.in \
				release/determine_release_state.pl doc/index.html.in
	perl release/determine_release_state.pl $(DARCS_VERSION) > release/STATE
src/Context.hs: _darcs/hashed_inventory stringify config.command
	PATH=".:$$PATH" darcs changes --context | cat config.command - \
		| ./stringify Context context > $@
else
src/ThisVersion.lhs doc/index.html: release/STATE src/ThisVersion.lhs.in \
				release/determine_release_state.pl doc/index.html.in
	perl release/determine_release_state.pl $(DARCS_VERSION)
release/STATE:
	echo -n $(DARCS_VERSION) '(unknown)' > $@
src/Context.hs: stringify
	test -f $@ || echo unknown | ./stringify Context context > $@
endif

darcs-stable.tar.gz: dist
	ln -sf "darcs-$(DARCS_VERSION).tar.gz" $@
.PHONY: darcs-stable.tar.gz

.SUFFIXES:

ghcflags_deslash=$(GHCFLAGS_$(subst /,__,$(1)))
ghcflags_fancy=$(if $(call ghcflags_deslash,$(1)),$(call ghcflags_deslash,$(1)),$(GHCFLAGS))

ifdef VERBOSE
ANNOUNCE_GHC=$(GHC)
else
ANNOUNCE_GHC=@echo [ghc] $@; $(GHC)
endif

%.o : %.lhs
	$(ANNOUNCE_GHC) $(call ghcflags_fancy,$@) -c $<

# stupid rule to do nothing to make a .hi file from a .o file.
%.hi : %.o

%.o : %.hs
	$(ANNOUNCE_GHC) $(call ghcflags_fancy,$@) -c $<
	@touch $*.hi

%.o : %.c
	$(ANNOUNCE_GHC) $(CPPFLAGS) $(OPTCCFLAGS) -c $<

% : src/%.lhs
	rm -f Main.hi Main.o
	$(ANNOUNCE_GHC) $(GHCFLAGS) $(OPTLLDFLAGS) -o $@ $^ $(OPTLLIBS)

% : src/%.hs
	rm -f Main.hi Main.o
	$(ANNOUNCE_GHC) $(GHCFLAGS) $(OPTLLDFLAGS) -o $@ $^ $(OPTLLIBS)

%.hs : %.hsc
	hsc2hs $<

%.hi : %.o
	@:

%.dvi : %.tex
	(cd `dirname $<` && $(LATEX) `basename $<`)
	while grep >/dev/null "Rerun to get cross-references right" $*.log; do \
	    (cd `dirname $<` && $(LATEX) `basename $<`); \
	done


%.pdf : %.tex
	(cd `dirname $<` && $(PDFLATEX) `basename $<`)
	while grep >/dev/null "Rerun to get cross-references right" $*.log; do \
	    (cd `dirname $<` && $(PDFLATEX) `basename $<`); \
	done

%.ps : %.dvi
	$(DVIPS) -t letter -o $@ $<