9306a7c0d5d413d6e801fbb0e71b8817e5382251
[alexxy/gromacs.git] / share / template / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2 #
3 # Don't edit - this file is generated automatically from Makefile.am
4 #
5
6 templatedir = ${datadir}/template
7
8 # we don't build this, it's meant for the user to play with.
9 # Since a Makefile is used for the installation, we call the
10 # template makefile Template.mak, and rename it to Makefile when installing.
11 LDFLAGS = @LDFLAGS@
12 LIBS = @LIBS@
13 CPPFLAGS = @CPPFLAGS@
14 CFLAGS = @CFLAGS@
15 CC = @CC@
16
17 template_DATA = template.c README Makefile.@host@
18 EXTRA_DIST = template.c README Template.mak
19
20 #BUILT_SOURCES = Makefile.@host@
21
22 Makefile.@host@: Template.mak Makefile 
23         cat $(srcdir)/Template.mak | sed 's,@libdir\@,$(libdir),' | \
24         sed 's,@LDFLAGS\@,$(LDFLAGS),' | \
25         sed 's,@LIBS\@,$(LIBS),' | \
26         sed 's,@CPPFLAGS\@,$(CPPFLAGS),' | \
27         sed 's,@CFLAGS\@,$(CFLAGS),' | \
28         sed 's,@CC\@,$(CC),' | \
29         sed 's,@includedir\@,$(includedir),' | \
30         sed 's,@host\@,@host@,' >$@
31
32 install-data-hook:
33         (cd $(DESTDIR)$(templatedir) && test ! -f Makefile && $(LN_S) Makefile.@host@ Makefile ; exit 0)
34
35 CLEANFILES = Makefile.@host@ *~ \\\#*
36
37
38
39