2 # System properties as determined by Autoconf.
7 exec_prefix := @
exec_prefix@
10 datarootdir
:= @datarootdir@
13 sysconfdir
:= @sysconfdir@
14 libexecdir
:= @libexecdir@
15 PACKAGE_TARNAME
:= @PACKAGE_TARNAME@
18 DARCS_VERSION
:= @DARCS_VERSION@
20 CPPFLAGS
:= @CPPFLAGS@ @DEFS@
22 OPTCCFLAGS
:= $(addprefix -optc
,$(CFLAGS
) $(CPPFLAGS
))
24 OPTLLDFLAGS
:= $(addprefix -optl
,$(LDFLAGS
))
26 OPTLLIBS
:= $(filter-out -%,$(LIBS
)) $(addprefix -optl
,$(filter -%,$(LIBS
)))
27 GHCFLAGS
:= @GHCFLAGS@ @CPPFLAGS@ @DEFS@
28 USE_GNULIBSHA1
:= @USE_GNULIBSHA1@
29 HAVE_HTTP
:= @HAVE_HTTP@
30 HAVE_CURSES
:= @HAVE_CURSES@
31 HAVE_LIBCURL
:= @HAVE_LIBCURL@
32 HAVE_LIBWWW
:= @HAVE_LIBWWW@
33 HAVE_MAPI
:= @HAVE_MAPI@
34 HAVE_TERMIO_H
:= @HAVE_TERMIO_H@
40 INSTALL_DATA
:= @INSTALL_DATA@
42 PDFLATEX
:= @PDFLATEX@
44 MAKEMANUAL
:= @MAKEMANUAL@
45 PREPROCHTML
:= @PREPROCHTML@
46 MAKENSIS
:= @MAKENSIS@
47 HADDOCK_VERSION
:= @HADDOCK_VERSION@
49 all : config @TARGETS@ microbench
51 install: all @INSTALLWHAT@
53 ifeq ('@I_AM_IN_REPO@', 'yes')
54 release
/STATE src
/ThisVersion.lhs doc
/index.html
: _darcs
/hashed_inventory src
/ThisVersion.lhs.in \
55 release
/determine_release_state.pl \
56 doc
/index.html.in config.status
57 perl release
/determine_release_state.pl
$(DARCS_VERSION
) > release
/STATE
58 src
/Context.hs
: _darcs
/hashed_inventory stringify config.command
59 PATH
=".:$$PATH" darcs changes
--context | cat config.command
- \
60 | .
/stringify Context context
> $@
62 src
/ThisVersion.lhs doc
/index.html
: release
/STATE src
/ThisVersion.lhs.in \
63 release
/determine_release_state.pl \
64 doc
/index.html.in config.status
65 perl release
/determine_release_state.pl
$(DARCS_VERSION
)
67 echo
-n
$(DARCS_VERSION
) '(unknown)' > $@
68 src
/Context.hs
: stringify
69 test -f
$@ || echo unknown | .
/stringify Context context
> $@
72 darcs-stable.
tar.gz
: dist
73 ln
-sf
"darcs-$(DARCS_VERSION).tar.gz" $@
74 .PHONY
: darcs-stable.
tar.gz
78 # This is a hack to allow a normal GHCFLAGS to be overridden for a few
79 # source files, see the GHCFLAGS_src__*.o settings in GNUmakefile.
80 ghcflags_deslash
=$(GHCFLAGS_
$(subst /,__
,$(1)))
81 ghcflags_fancy
=$(if
$(call ghcflags_deslash
,$(1)),$(call ghcflags_deslash
,$(1)),$(GHCFLAGS
))
86 ANNOUNCE_GHC
=@echo
[ghc
] $@
; $(GHC
)
90 $(ANNOUNCE_GHC
) $(call ghcflags_fancy
,$@
) -c
$<
92 # stupid rule to do nothing to make a .hi file from a .o file.
96 $(ANNOUNCE_GHC
) $(call ghcflags_fancy
,$@
) -c
$<
100 $(ANNOUNCE_GHC
) $(CPPFLAGS
) $(OPTCCFLAGS
) -c
$<
104 $(ANNOUNCE_GHC
) $(GHCFLAGS
) $(OPTLLDFLAGS
) -o
$@
$^
$(OPTLLIBS
)
108 $(ANNOUNCE_GHC
) $(GHCFLAGS
) $(OPTLLDFLAGS
) -o
$@
$^
$(OPTLLIBS
)
117 (cd
$(dir $*) && $(LATEX
) $(notdir $*))
118 while grep
>/dev
/null
"Rerun to get cross-references right" $*.log
; do \
119 (cd
$(dir $*) && $(LATEX
) $(notdir $*)); \
124 (cd
$(dir $*) && $(PDFLATEX
) $(notdir $*))
125 while grep
>/dev
/null
"Rerun to get cross-references right" $*.log
; do \
126 (cd
$(dir $*) && $(PDFLATEX
) $(notdir $*)); \
130 $(DVIPS
) -t letter
-o
$@
$<