1 ## Process this file with automake to produce Makefile.in
3 # Don't edit - this file is generated automatically from Makefile.am
6 templatedir = ${datadir}/template
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.
17 template_DATA = template.c README Makefile.@host@
18 EXTRA_DIST = template.c README Template.mak
20 #BUILT_SOURCES = Makefile.@host@
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@,' >$@
33 (cd $(DESTDIR)$(templatedir) && test ! -f Makefile && $(LN_S) Makefile.@host@ Makefile ; exit 0)
35 CLEANFILES = Makefile.@host@ *~ \\\#*