summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--automake.tail.mk11
-rw-r--r--config.mk.in47
2 files changed, 52 insertions, 6 deletions
diff --git a/automake.tail.mk b/automake.tail.mk
index 5d6ad00..a24820b 100644
--- a/automake.tail.mk
+++ b/automake.tail.mk
@@ -19,8 +19,7 @@ include $(topsrcdir)/common.each.tail.mk
# Aggregate variables
# Add some more defaults to the *_files variables
-$(_am)clean_files += $($(_am)gen_files) $($(_am)out_files)
-$(_am)cfg_files += Makefile
+$(_am)clean_files += $($(_am)gen_files) $($(_am)cfg_files) $($(_am)out_files)
# Now namespace the *_files variables
define _am_save_variables
@@ -103,10 +102,10 @@ $(outdir)/build : $(_am_out_files/%(outdir))
$(outdir)/install: $(_am_sys_files/%(outdir))
# Destructive phony targets
_am_uninstall/%(outdir) = $(_am_sys_files/%(outdir))
-_am_mostlyclean/%(outdir) = $(filter-out $(_am_slow_files/%(outdir)) $(_am_cfg_files/%(outdir)) $(_am_gen_files/%(outdir)),$(_am_clean_files/%(outdir)))
-_am_clean/%(outdir) = $(filter-out $(_am_cfg_files/%(outdir)) $(_am_gen_files/%(outdir)),$(_am_clean_files/%(outdir)))
-_am_distclean/%(outdir) = $(filter-out $(_am_gen_files/%(outdir)),$(_am_clean_files/%(outdir)))
-_am_maintainer-clean/%(outdir) = $(_am_clean_files/%(outdir))
+_am_mostlyclean/%(outdir) = $(filter-out $(_am_slow_files/%(outdir)) $(_am_cfg_files/%(outdir)) $(_am_gen_files/%(outdir)) $(_am_src_files/%(outdir)),$(_am_clean_files/%(outdir)))
+_am_clean/%(outdir) = $(filter-out $(_am_cfg_files/%(outdir)) $(_am_gen_files/%(outdir)) $(_am_src_files/%(outdir)),$(_am_clean_files/%(outdir)))
+_am_distclean/%(outdir) = $(filter-out $(_am_gen_files/%(outdir)) $(_am_src_files/%(outdir)),$(_am_clean_files/%(outdir)))
+_am_maintainer-clean/%(outdir) = $(filter-out $(_am_src_files/%(outdir)),$(_am_clean_files/%(outdir)))
endef
$(foreach outdir,$(_am_outdirs),$(eval $(subst %(outdir),$(outdir),$(value _am_directory_rules))))
diff --git a/config.mk.in b/config.mk.in
new file mode 100644
index 0000000..ca8fa7f
--- /dev/null
+++ b/config.mk.in
@@ -0,0 +1,47 @@
+ifeq ($(topsrcdir),)
+topsrcdir := $(patsubst %/,%,$(dir $(lastword $(MAKEFILE_LIST))))
+
+PACKAGE = rvs
+VERSION = 0.10
+pkgtextdomain = $(PACKAGE)
+
+DESTDIR =
+prefix = /usr/local
+exec_prefix = $(prefix)
+
+bindir = $(exec_prefix)/bin
+sbindir = $(exec_prefix)/sbin
+libexecdir = $(exec_prefix)/libexec
+datarootdir = $(prefix)/share
+datadir = $(datarootdir)
+sysconfdir = $(prefix)/etc
+sharedstatedir = $(prefix)/com
+localstatedir = $(prefix)/var
+runstatedir = $(localstatedir)/run
+localedir = $(datarootdir)/locale
+
+pkgdatadir = $(datadir)/$(PACKAGE)
+pkglibexecdir = $(libexecdir)/$(PACKAGE)
+
+CFLAGS = -std=c99 -Werror -Wall -Wextra -pedantic -O2
+CPPFLAGS = -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE
+
+CC = cc
+M4 = m4
+MKDIR = mkdir
+MKDIRS = mkdir -p
+RMDIRS = rmdir -p
+INSTALL_DATA = install -m644
+INSTALL_PROGRAM = install -m755
+CP = cp
+MV = mv
+RM = rm -f
+SED = sed
+SORT = sort
+TAR = tar
+TRUE = true
+PRINTF = printf
+
+AUTODEPS = t
+
+endif