forked from debbuild/debbuild
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.in
59 lines (45 loc) · 1.53 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
BINDIR = @BINDIR@
LIBDIR = @LIBDIR@
SYSCONFDIR = @SYSCONFDIR@
MANDIR = @MANDIR@
DATADIR = @DATADIR@
DEBCONFIGDIR = @DEBCONFIGDIR@
POD2MAN = @POD2MAN@
MSGFMT = @MSGFMT@
VERSION = @VERSION@
LANGUAGES = @LANGUAGES@
.DEFAULT_GOAL := build
.PHONY: build
build: debbuild.out
debbuild.out: debbuild debbuild.spec
cp debbuild debbuild.out
echo "\
version:$(VERSION)\n\
debconfigdir:$(DEBCONFIGDIR)\n\
sysconfdir:$(SYSCONFDIR)\n" >> debbuild.out
chmod +x debbuild.out
.PHONY: check
check:
yath
.PHONY: install
install:
rm -rf $(DESTDIR)
install -d $(DESTDIR)$(BINDIR)
install debbuild.out $(DESTDIR)$(BINDIR)/debbuild
install -d $(DESTDIR)$(DEBCONFIGDIR)
install -m 644 macros/macros.in $(DESTDIR)$(DEBCONFIGDIR)/macros
install -m 644 config/debrc $(DESTDIR)$(DEBCONFIGDIR)
install -m 755 scripts/find-lang.pl $(DESTDIR)$(DEBCONFIGDIR)
install -d $(DESTDIR)$(DEBCONFIGDIR)/macros.d
install -m 644 macros/macros.sysutils $(DESTDIR)$(DEBCONFIGDIR)/macros.d
install -m 644 macros/macros.texlive $(DESTDIR)$(DEBCONFIGDIR)/macros.d
install -m 644 macros/platform.in $(DESTDIR)$(DEBCONFIGDIR)/macros.d/macros.00platform
install -d $(DESTDIR)$(SYSCONFDIR)/debbuild
install -d $(DESTDIR)$(MANDIR)/man8
$(POD2MAN) --utf8 --center="System Manager's Manual" --section 8 \
--release="Release $(VERSION)" debbuild \
$(DESTDIR)$(MANDIR)/man8/debbuild.8
for lang in $(LANGUAGES) ; do \
install -d $(DESTDIR)$(DATADIR)/locale/$$lang/LC_MESSAGES ; \
$(MSGFMT) po/$$lang/debbuild.po -o $(DESTDIR)$(DATADIR)/locale/$$lang/LC_MESSAGES/debbuild.mo ; \
done