forked from yetist/lunar-date
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.am
More file actions
115 lines (97 loc) · 3.16 KB
/
Makefile.am
File metadata and controls
115 lines (97 loc) · 3.16 KB
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = po lunar-date data tests docs
AM_CPPFLAGS = -DLIBLUNAR_DISABLE_DEPRECATED
EXTRA_DIST = \
lunar-date-2.0.pc.in \
ChangeLog.pre-2-2 \
sanity_check \
intltool-extract.in \
intltool-merge.in \
intltool-update.in
DISTCLEANFILES = \
intltool-extract \
intltool-merge \
intltool-update
MAINTAINERCLEANFILES = \
aclocal.m4 \
config.guess \
config.h.in \
config.sub \
depcomp \
gtk-doc.make \
install-sh \
ltmain.sh \
missing \
mkinstalldirs \
py-compile \
m4/gtk-doc.m4 \
m4/intltool.m4 \
m4/libtool.m4 \
m4/ltoptions.m4 \
m4/ltsugar.m4 \
m4/ltversion.m4 \
m4/lt~obsolete.m4 \
`find "$(srcdir)" -type f -name Makefile.in -print`
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = lunar-date-2.0.pc
if HAVE_INTROSPECTION
if HAVE_VALA
SUBDIRS += vapi
endif
endif
DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --enable-introspection
.PHONY: release sanity snapshot snapcheck ChangeLog
release:
googlecode_upload.py -s $(distdir).tar.gz -p liblunar -u yetist@gmail.com -l Featured,Type-Source,OpSys-Linux $(distdir).tar.gz
sanity:
./sanity_check $(VERSION)
snapshot:
$(MAKE) dist distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
snapcheck:
$(MAKE) distcheck distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
CHANGELOG_START = tags/v2.2.3
ChangeLog:
@echo Creating $@
@if test -d "$(srcdir)/../.git"; then \
(./missing --run git log $(CHANGELOG_START)^^.. --stat $(srcdir) ) | fmt --split-only > $@.tmp \
&& mv -f $@.tmp $@ \
|| ($(RM) $@.tmp; \
echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
(test -f $@ || echo git-log is required to generate this file >> $@)); \
else \
test -f $@ || \
(echo A git checkout and git-log is required to generate ChangeLog >&2 && \
echo A git checkout and git-log is required to generate this file >> $@); \
fi
dist-hook:
$(MAKE) -C "$(srcdir)/po" "$(GETTEXT_PACKAGE).pot"
cp "$(srcdir)/po/$(GETTEXT_PACKAGE).pot" "$(distdir)/po/"
if test -f $(srcdir)/INSTALL.in && test -f $(srcdir)/README.in ; then \
CONFIG_FILES="INSTALL:$(srcdir)/INSTALL.in README:$(srcdir)/README.in" \
CONFIG_HEADERS= \
$(SHELL) config.status \
&& cp INSTALL README $(distdir) ; \
fi
distclean-local:
if test "$(srcdir)" = "."; then :; else \
rm -f ChangeLog; \
fi
synchtml:
modname=lunar-date; \
svnroot="https://liblunar.googlecode.com/svn/docs/lunar-date"; \
tmpdir=tmp/svndocs; \
if [ -d $$tmpdir ];then \
svn update $$tmpdir/$$modname; \
else \
mkdir -p $$tmpdir; \
svn checkout $$svnroot $$tmpdir/$$modname; \
fi ; \
if [ -d docs/reference/html ];then \
cp docs/reference/html/* $$tmpdir/$$modname/; \
svn status $$tmpdir/$$modname |grep "?" |awk '{print $2}'|xargs svn add; \
find $$tmpdir/$$modname -maxdepth 1 -type f -name "*.htm*" -exec svn propset "svn:mime-type" "text/html" {} \; ; \
svn commit -m "update $$modname html docs" $$tmpdir/$$modname; \
else \
echo "please make docs first"; \
fi
-include $(top_srcdir)/git.mk