summaryrefslogtreecommitdiff
path: root/fc-lang/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'fc-lang/Makefile.am')
-rw-r--r--fc-lang/Makefile.am9
1 files changed, 6 insertions, 3 deletions
diff --git a/fc-lang/Makefile.am b/fc-lang/Makefile.am
index fd4ba0e..beef9af 100644
--- a/fc-lang/Makefile.am
+++ b/fc-lang/Makefile.am
@@ -22,9 +22,10 @@
# PERFORMANCE OF THIS SOFTWARE.
#
-INCLUDES=-I../src $(FREETYPE_CFLAGS)
+INCLUDES=-I${top_srcdir}/src -I${top_srcdir} $(FREETYPE_CFLAGS)
TMPL=fclang.tmpl.h
+STMPL=${top_srcdir}/fc-lang/fclang.tmpl.h
TARG=fclang.h
noinst_PROGRAMS=fc-lang
@@ -37,6 +38,8 @@ ORTH=@ORTH_FILES@
EXTRA_DIST=$(TMPL) $(ORTH)
-$(TARG): $(TMPL) fc-lang $(ORTH)
+$(TARG): $(STMPL) fc-lang $(ORTH)
rm -f $(TARG)
- ./fc-lang $(ORTH) < $(TMPL) > $(TARG)
+ dir=`pwd`; (cd ${srcdir} && $${dir}/fc-lang $(ORTH)) < $(STMPL) > $(TARG)
+
+CLEANFILES=$(TARG)