# generic variables:
#
+include Stable.make
include ./$(depth)/make/Variables.make
-include ./$(depth)/make/Files.make
-include .version
-
+include VERSION
#
# identify module:
SUBDIRS = include
#
-# to be remade each build:
-#
-VERSION_DEPENDENCY = $(lily-version)
-#
-
# list of distribution files:
#
-DISTFILES = .version Makefile $(ALL_SOURCES)
+EXTRA_DISTFILES = VERSION
#
# list of custom libraries:
#
-# yes, i know about the -L and -l options,
-# but these libraries get rebuilt when needed.
-CUSTOMLIBES = $(LIBLILY) $(LIBFLOWER)
+MODULE_LIBDEPS= check-flower-deps check-lily-deps
+MODULE_LIBES= -llily -lflower
-LOADLIBES +=
#
# main target of this module:
#
-# MAINTARGET = $(EXECUTABLE)
-# MAINTARGET = $(LIBRARY)
-MAINTARGET = $(lily_bindir)/$(EXECUTABLE)# huh?
-# MAINTARGET = $(libdir)/$(LIBRARY)# huh?
-
-default: $(MAINTARGET)
+default: $(EXECUTABLE)
#
+include ./$(depth)/make/Files.make
# generic targets and rules:
#
# force these: Make can't know these have to be generated in advance
my-lily-lexer.cc: $(outdir)/parser.hh
-lexer.l: $(outdir)/parser.hh
+$(outdir)/lexer.cc: $(outdir)/parser.hh
#
-# list of depend files:
-#
-DEPFILES = $(wildcard $(depdir)/*.dep)
-#
-# auto dependencies:
-#
--include /dev/null $(DEPFILES)
-#
+localclean:
+ rm -f $(outdir)/parser.* $(outdir)/lexer.cc
+
+#should merge with mi2mu rule
+localinstall: installexe
+localuninstall: uninstallexe