-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
51 lines (40 loc) · 1.15 KB
/
Makefile
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
# Build all Debian packaging examples and produce documentation
# Copyright (C) 2015 Osamu Aoki
# Define if not defined (Prevent error when Make is run independently)
SOURCE_DATE_EPOCH ?= "1400000000"
# run "make prep" before commit
#ifndef DEBUG
PKG =
#else
PKG = pkg
#endif
all: build
include Makefile.common
include Makefile.pkg
include Makefile.dbk
build: $(PKG) $(wildcard $(ASCIIDOC_DIR)/*.txt)
# process ASCIIDOC after $(pkg) targets even under the parallel build
$(MAKE) base-xml
echo "DEBUG='$(DEBUG)'"
echo "LANGPO='$(LANGPO)'"
echo "LANGALL='$(LANGALL)'"
echo "NOPDF='$(NOPDF)'"
echo "BASEDIR='$(BASEDIR)'"
echo "TMPDIR='$(TMPDIR)'"
$(MAKE) all-xml # XML docs for all PO
-mkdir -p $(TMPDIR)
-mkdir -p $(BASEDIR)/html
# leave fuzzy status in the package build log
-cat fuzzy.log
install: css html pdf epub txt # build docs from XML
#ifndef DEBUG
-rm -rf $(TMPDIR) # remove all $(TMPDIR) contents
#endif
clean::
-rm -rf $(TMPDIR)
-$(MAKE) -C $(ASCIIDOC_DIR) clean
distclean:: clean
# Use this target on devel branch source
package:
debmake -t -y -zx -b':doc' -i pdebuild
.PHONY: all build install clean distclean package