Fix für r1944: enUS wird als normales Modul implementiert
git-svn-id: https://svn.neo-layout.org@1955 b9310e46-f624-0410-8ea1-cfbb3a30dc96
This commit is contained in:
parent
205d809d9b
commit
cb4bcaf38c
2 changed files with 31 additions and 14 deletions
|
@ -5,18 +5,19 @@
|
|||
# Ort der Modul-Dateien
|
||||
#
|
||||
SRC = ./src
|
||||
MODULES_FILES = $(wildcard $(SRC)/*.module)
|
||||
PSEUDO_MODULES_FILES = $(SRC)/enUS.module
|
||||
MODULES_FILES = $(PSEUDO_MODULES_FILES) $(wildcard $(SRC)/*.module)
|
||||
MODULES = $(notdir $(basename $(MODULES_FILES)))
|
||||
|
||||
# Liste von Demofiles, werden bei 'make all' erzeugt.
|
||||
# Im Grunde ist dies seit 'make config' überflüssig.
|
||||
#
|
||||
DEMOFILES = \
|
||||
XCompose_base \
|
||||
XCompose_base_math \
|
||||
XCompose_base_math_greek_lang \
|
||||
XCompose_base_greek_lang \
|
||||
XCompose_base_roman
|
||||
XCompose_enUS_base \
|
||||
XCompose_enUS_base_math \
|
||||
XCompose_enUS_base_math_greek_lang \
|
||||
XCompose_enUS_base_greek_lang \
|
||||
XCompose_enUS_base_roman
|
||||
|
||||
# Hilfsprogramme
|
||||
#
|
||||
|
@ -28,7 +29,7 @@ CONFIGURE = /bin/bash ./configure.sh
|
|||
# Defaultwert, falls .config noch nicht existiert.
|
||||
#
|
||||
-include ./.config
|
||||
USER_XCOMPOSE ?= XCompose_base_math
|
||||
USER_XCOMPOSE ?= XCompose_enUS_base_math
|
||||
|
||||
#
|
||||
# 'make' bzw. 'make all' erzeugt die Datei XCompose ohne Installation
|
||||
|
@ -39,9 +40,11 @@ all : XCompose $(DEMOFILES)
|
|||
#
|
||||
# 'make config' führt interaktive Abfrage der Konfiguration durch
|
||||
# und legt Ergebnis in .config ab
|
||||
#
|
||||
|
||||
config :
|
||||
|
||||
config : $(PSEUDO_MODULES_FILES)
|
||||
@if [ ! -f .config ] ; then \
|
||||
echo "USER_XCOMPOSE = $(USER_XCOMPOSE)" > .config ; fi
|
||||
$(CONFIGURE) $(MODULES)
|
||||
|
||||
#
|
||||
|
@ -69,12 +72,28 @@ XCompose_% : $(MODULES_FILES)
|
|||
XCompose : $(USER_XCOMPOSE) $(wildcard .config)
|
||||
cp $< $@
|
||||
|
||||
#
|
||||
# Regeln für Pseudo-Module
|
||||
#
|
||||
# Im Grunde braucht src/en_US.UTF-8 gar nicht in der Neo-Distribution
|
||||
# enthalten zu sein; man könnte stattdessen auch an dieser Stelle
|
||||
# die Abhängigkeit
|
||||
# $(SRC)/enUS.module : /usr/share/X11/locale/en_US.UTF-8/Compose
|
||||
# setzen.
|
||||
#
|
||||
$(SRC)/enUS.module : $(SRC)/en_US.UTF-8
|
||||
@ ( \
|
||||
echo "# File $@, wird aus $< durch Kopieren erzeugt." ;\
|
||||
echo "#configinfo en_US.UTF-8, Standard unabhängig von Neo" ;\
|
||||
cat $< \
|
||||
) > $@
|
||||
|
||||
#
|
||||
# Installiere ins Homeverzeichnis
|
||||
#
|
||||
|
||||
install : XCompose
|
||||
cat $(SRC)/en_US.UTF-8 XCompose > $${HOME}/.XCompose
|
||||
cp XCompose $${HOME}/.XCompose
|
||||
|
||||
#
|
||||
# Test der XCompose-Dateien auf Korrektheit
|
||||
|
@ -96,6 +115,7 @@ clean :
|
|||
|
||||
distclean : clean
|
||||
-rm -f .config
|
||||
-rm -f $(SRC)/enUS.module
|
||||
|
||||
.PHONY : all config check clean distclean install
|
||||
|
||||
|
|
|
@ -13,10 +13,7 @@ CONFFILE=.config
|
|||
MODPATH=./src
|
||||
MODSUFFIX=.module
|
||||
|
||||
if [ ! -e $CONFFILE ] ; then
|
||||
# leere Konfiguration erzeugen
|
||||
echo "USER_XCOMPOSE = base " > $CONFFILE
|
||||
fi
|
||||
[ -e $CONFFILE ] || { echo $CONFFILE fehlt; exit 1; }
|
||||
|
||||
#
|
||||
# verfügbare Module auslesen und Kurzbeschreibung anzeigen
|
||||
|
|
Loading…
Add table
Reference in a new issue