~fredg/lfstools

8321043cb7dbc10e71f17e16be990660fb3000db — alienus 8 years ago 739d79b
locale install
1 files changed, 10 insertions(+), 10 deletions(-)

M Makefile
M Makefile => Makefile +10 -10
@@ 13,15 13,17 @@ RST2MAN=/usr/bin/rst2man.py

LFSTOOLSDIR=$(PREFIX)/share/lfstools

SBIN=service servicesetup keyboardsetup
MAND=service/man servicesetup/man keyboardsetup/man
SBIN=service servicesetup keyboardsetup localesetup
MAND=service/man servicesetup/man keyboardsetup/man localesetup/man
MANFF=service.8 servicesetup.8 keyboardsetup.8 localesetup.8
SERVICEPO=service/po
SERVICESETUPPO=servicesetup/po
KEYBOARDSETUPPO=keyboardsetup/po
POD=$(SERVICEPO) $(SERVICESETUPPO) $(KEYBOARDSETUPPO)
LOCALESETUPPO=localesetup/po
POD=$(SERVICEPO) $(SERVICESETUPPO) $(KEYBOARDSETUPPO) $(LOCALESETUPPO)
MOFF=fr.mo

POF:=$(foreach dir,$(POD),$(wildcard $(dir)/*.po))
POM:=$(foreach dir,$(POD),$(wildcard $(dir)/*.mo))
MANF:=$(foreach dir,$(MAND),$(wildcard $(dir)/*.rst))
MAN8:=$(foreach dir,$(MAND),$(wildcard $(dir)/*.8))
SMO:=$(foreach dir,$(SERVICEPO),$(wildcard $(dir)/*.mo))


@@ 64,17 66,15 @@ install:
	install -Dm644 keyboardsetup/numlock $(DESTDIR)/etc/rc.d/init.d/numlock
	install -Dm644 keyboardsetup/20-keymap.conf-template $(DESTDIR)/$(LFSTOOLSDIR)/keyboardsetup/20-keymap.conf-template
	install -Dm644 keyboardsetup/keymaps $(DESTDIR)/$(LFSTOOLSDIR)/keyboardsetup/keymaps
	for ma in $(MAN8); do install -Dm644 $$ma $(DESTDIR)/$(PREFIX)/share/man/man8/$$ma ; done
	for s in $(SMO); do install -Dm644 $$s $(DESTDIR)/$(PREFIX)/share/locale/service/LC_MESSAGES/$$s ; done
	for ss in $(SSMO); do install -Dm644 $$ss $(DESTDIR)/$(PREFIX)/share/locale/servicesetup/LC_MESSAGES/$$ss ; done
	for k in $(KMO); do install -Dm644 $$k $(DESTDIR)/$(PREFIX)/share/locale/keyboardsetup/LC_MESSAGES/$$k ; done
	for ma in $(MAND); do cd $$ma ; for f in $(MANFF) ; do install -Dm644 $$f $(DESTDIR)/$(PREFIX)/share/man/man8/$$f ; done ; cd - ; done
	for po in $(POD); do cd $$po ; for p in $(MOFF) ; do install -Dm644 $$p $(DESTDIR)/$(PREFIX)/share/locale/`echo $$p | sed "s/.mo//"`/LC_MESSAGES/$$po.mo ; done ; cd - ; done

uninstall:
	for bin in $(SBIN); do rm $(DESTDIR)/$(PREFIX)/sbin/$$bin; done
	rm $(DESTDIR)/etc/rc.d/init.d/numlock
	rm -rf $(DESTDIR)/$(LFSTOOLSDIR)
	for l in $(SBIN); do rm -rf $(DESTDIR)/$(PREFIX)/share/locale/$$l
	for m in $(SBIN); do rm $(DESTDIR)/$(PREFIX)/share/man/man8/$$m.8
	for l in $(SBIN); do rm -rf $(DESTDIR)/$(PREFIX)/share/locale/fr/LC8MESSAGES/$$l ; done
	for m in $(SBIN); do rm $(DESTDIR)/$(PREFIX)/share/man/man8/$$m.8 ; done
	@echo 'Done, LFStools have been removed from your system.'

tarball: