-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile.am
38 lines (33 loc) · 1.02 KB
/
Makefile.am
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
SUBDIRS = backend m4
bin_SCRIPTS = ibus-fbterm
man_one_in_files = ibus-fbterm.1.in
man_one_files = $(man_one_in_files:.1.in=.1)
man_one_DATA =$(man_one_files:.1=.1.gz)
man_onedir = $(mandir)/man1
%.1: %.1.in
$(AM_V_GEN) sed \
-e 's|@VERSION[@]|$(VERSION)|g' $< > [email protected] && \
mv [email protected] $@
%.1.gz: %.1
$(AM_V_GEN) gzip -c $< > [email protected] && mv [email protected] $@
dist-hook:
if test -d .git ; then \
git log --name-status --date=iso > $(distdir)/ChangeLog ; \
PREV_MICRO_VERSION=`expr $(PACKAGE_VERSION_MICRO) - 1`; \
PREV_VERSION=\
"$(PACKAGE_VERSION_MAJOR).$(PACKAGE_VERSION_MINOR).$$PREV_MICRO_VERSION"; \
echo "Changes in $(PACKAGE_NAME) $(PACKAGE_VERSION)" \
> $(distdir)/NEWS; \
echo "" >> $(distdir)/NEWS; \
git log $$PREV_VERSION...$(PACKAGE_VERSION) --reverse \
--pretty=format:'%s (%an) %h' >> $(distdir)/NEWS; \
fi
EXTRA_DIST = \
$(man_one_in_files) \
ibus-fbterm \
ibus-fbterm.spec.in \
$(NULL)
CLEANFILES = \
$(man_one_DATA) \
$(man_one_files) \
$(NULL)