summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2008-11-11 10:52:18 +0100
committerPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-11-12 00:33:15 -0200
commitcfc78a1c2452362a5e7c88ed239c9d7ef0240a4d (patch)
tree7ead62e0f74f4944326017a04b11a42861597a89 /Makefile.am
parent9d4a9520409fdb50987be6f4ca2c8afd5b53c994 (diff)
reorganize app default files
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am41
1 files changed, 8 insertions, 33 deletions
diff --git a/Makefile.am b/Makefile.am
index 7c13340..0fad032 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -161,38 +161,13 @@ lisp_re_tests_LDADD = -L. -lre
lisp_re_tests_SOURCES = lisp/re/tests.c
-# App default files (*.ad)
+# App default files
-APPDEFAULTFILES = \
+appdefaultdir = @appdefaultdir@
+appdefault_DATA = \
app-defaults/Xedit-color \
app-defaults/Xedit
-$(APPDEFAULTFILES): appsubdir
-
-.PHONY: appsubdir
-
-# Ensure ./app-defaults exists, avoiding race condition for parallel jobs
-appsubdir:
- test -d app-defaults || mkdir app-defaults
-
-if USE_XPRINT
-app-defaults/Xedit.ad:
- cp $(top_srcdir)/app-defaults/Xedit-xprint.ad app-defaults/Xedit.ad
-else
-app-defaults/Xedit.ad:
- cp $(top_srcdir)/app-defaults/Xedit-noxprint.ad app-defaults/Xedit.ad
-endif
-
-SUFFIXES = .ad
-
-.ad:
- cp $< $@
-
-appdefaultdir = @appdefaultdir@
-appdefault_DATA = $(APPDEFAULTFILES)
-
-CLEANFILES = $(APPDEFAULTFILES) app-defaults/Xedit.ad
-
lispdir = $(LISPDIR)
dist_lisp_DATA = ${srcdir}/lisp/modules/lisp.lsp \
${srcdir}/lisp/modules/xedit.lsp \
@@ -221,9 +196,9 @@ dist_progmodes_DATA = \
appman_PRE = xedit.man
EXTRA_DIST = \
- app-defaults/Xedit-color.ad \
- app-defaults/Xedit-xprint.ad \
- app-defaults/Xedit-noxprint.ad \
+ app-defaults/Xedit-color \
+ app-defaults/Xedit-xprint \
+ app-defaults/Xedit-noxprint \
app-defaults/Xedit-sample \
lisp/README \
lisp/TODO \
@@ -251,7 +226,7 @@ appmandir = $(APP_MAN_DIR)
appman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@)
EXTRA_DIST += $(appman_PRE)
-CLEANFILES += $(appman_DATA)
+CLEANFILES = $(appman_DATA)
SED = sed
@@ -272,7 +247,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) < $< > $@