summaryrefslogtreecommitdiff
path: root/app/xcalc/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'app/xcalc/Makefile.am')
-rw-r--r--app/xcalc/Makefile.am37
1 files changed, 15 insertions, 22 deletions
diff --git a/app/xcalc/Makefile.am b/app/xcalc/Makefile.am
index 24eb4788b..46a0d1ddd 100644
--- a/app/xcalc/Makefile.am
+++ b/app/xcalc/Makefile.am
@@ -26,7 +26,6 @@ xcalc_LDADD = $(XCALC_LIBS) -lm
xcalc_SOURCES = \
actions.c \
- actions.h \
math.c \
xcalc.c \
xcalc.h
@@ -36,39 +35,33 @@ appman_PRE = \
# App default files (*.ad)
-appdefaultdir = @appdefaultdir@
-
-
-APPDEFAULTFILES = \
- XCalc \
- XCalc-color
+DISTCHECK_CONFIGURE_FLAGS = --with-appdefaultdir=\$${datadir}/X11/app-defaults
-SUFFIXES = .ad
-
-.ad:
- cp $< $@
+appdefaultdir = @appdefaultdir@
-appdefault_DATA = $(APPDEFAULTFILES)
+dist_appdefault_DATA = \
+ app-defaults/XCalc \
+ app-defaults/XCalc-color
-EXTRA_DIST = $(APPDEFAULTFILES:%=%.ad) ChangeLog autogen.sh
-CLEANFILES = $(APPDEFAULTFILES)
-MAINTAINERCLEANFILES = ChangeLog
+.PHONY: ChangeLog INSTALL
-.PHONY: ChangeLog
+INSTALL:
+ $(INSTALL_CMD)
ChangeLog:
- (GIT_DIR=$(top_srcdir)/.git git-log > .changelog.tmp && mv .changelog.tmp ChangeLog; rm -f .changelog.tmp) || (touch ChangeLog; echo 'git directory not found: installing possibly empty changelog.' >&2)
+ $(CHANGELOG_CMD)
-dist-hook: ChangeLog
+dist-hook: ChangeLog INSTALL
appmandir = $(APP_MAN_DIR)
appman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@)
-EXTRA_DIST += $(appman_PRE)
-CLEANFILES += $(appman_DATA)
+EXTRA_DIST = $(appman_PRE) autogen.sh
+MAINTAINERCLEANFILES = ChangeLog INSTALL
+CLEANFILES = $(appman_DATA)
SED = sed
@@ -89,7 +82,7 @@ MAN_SUBSTS = \
-e 's|__miscmansuffix__|$(MISC_MAN_SUFFIX)|g' \
-e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g'
-SUFFIXES += .$(APP_MAN_SUFFIX) .man
+SUFFIXES = .$(APP_MAN_SUFFIX) .man
.man.$(APP_MAN_SUFFIX):
- sed $(MAN_SUBSTS) < $< > $@
+ $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@