forked from joewing/jwm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.in
87 lines (74 loc) · 2.34 KB
/
Makefile.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
PACKAGE = jwm
SYSCONF = $(DESTDIR)@SYSCONF@
MANDIR = $(DESTDIR)@MANDIR@
ICONDIR = $(DESTDIR)@ICONDIR@
VERSION ?= @VERSION@
USE_NLS = @USE_NLS@
all:
$(MAKE) -C src all
$(MAKE) -C po all
install: all
$(MAKE) -C src install
$(MAKE) -C po install
$(MAKE) -C contrib install
install -d -m 0755 $(SYSCONF)
install -m 644 example.jwmrc $(SYSCONF)/system.jwmrc
install -d -m 0755 $(MANDIR)/man1
install -m 644 jwm.1 $(MANDIR)/man1/jwm.1
install-strip: all install-conf
$(MAKE) -C src install-strip
$(MAKE) -C po install-strip
$(MAKE) -C contrib install
install -d -m 0755 $(SYSCONF)
install -m 644 example.jwmrc $(SYSCONF)/system.jwmrc
install -d -m 0755 $(MANDIR)/man1
install -m 644 jwm.1 $(MANDIR)/man1/jwm.1
install -d -m 0755 $(ICONDIR)
uninstall:
$(MAKE) -C src uninstall
$(MAKE) -C po uninstall
$(MAKE) -C contrib uninstall
rm -f $(SYSCONF)/system.jwmrc
rm -f $(MANDIR)/man1/jwm.1
tarball:
rm -f ../jwm-$(VERSION).tar.xz ;
rm -fr ../jwm-$(VERSION) ;
cp -r ../jwm ../jwm-$(VERSION) ;
(cd ../jwm-$(VERSION) && $(MAKE) distclean) ;
(cd .. && tar -cf jwm-$(VERSION).tar jwm-$(VERSION));
rm -fr ../jwm-$(VERSION) ;
(cd .. && xz jwm-$(VERSION).tar)
clean:
(cd src && $(MAKE) clean)
(cd po && $(MAKE) clean)
rm -rf doc
distclean: clean
rm -f *[~#] config.cache config.log config.status config.h
rm -f Makefile src/Makefile jwm.1
rm -fr autom4te.cache
rm -f Makefile.bak src/Makefile.bak
rm -fr .git .gitignore
check-gettext:
@if test x$(USE_NLS) != "xyes" ; then \
echo "Missing gettext. Rerun configure and check for" \
"'checking whether to use NLS... yes'!" ; exit 1 ; fi
update-po: check-gettext
@find src/ -name "*.c" -print | sort > po/POTFILES.in.2 ; \
if diff po/POTFILES.in po/POTFILES.in.2 >/dev/null 2>&1 ; then \
rm -f po/POTFILES.in.2 ; \
else \
mv po/POTFILES.in.2 po/POTFILES.in ; \
fi
cd po && $(MAKE) $(AM_MAKEFLAGS) update-po
update-gmo: check-gettext
cd po && $(MAKE) $(AM_MAKEFLAGS) update-gmo
force-update-gmo: check-gettext
touch po/*.po
cd po && $(MAKE) $(AM_MAKEFLAGS) update-gmo
force-update-gmo-%: check-gettext
@language=`echo $@ | sed s/force-update-gmo-//` ; \
if test ! -f po/$$language.po ; then \
echo "file po/$$language.po does not exist" ; exit 1 ; fi ; \
touch po/$$language.po ; \
cd po && $(MAKE) $(AM_MAKEFLAGS) update-gmo
.PHONY: check-gettext update-po update-gmo force-update-gmo