File: Makefile.am

package info (click to toggle)
xlbiff 4.6.8-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 248 kB
  • sloc: ansic: 754; sh: 609; python: 389; xml: 67; perl: 45; makefile: 44
file content (57 lines) | stat: -rw-r--r-- 1,975 bytes parent folder | download | duplicates (2)
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
bin_PROGRAMS = xlbiff
xlbiff_SOURCES = xlbiff.c mailbox-preview.py

xmhformdir = @xmhformdir@
dist_xmhform_DATA = xlbiff.form

metainfodir = ${datarootdir}/metainfo
dist_metainfo_DATA = com.edsantiago.xlbiff.metainfo.xml com.edsantiago.mailbox-preview.metainfo.xml

appdefaultdir = @appdefaultdir@
appdefault_DATA = XLbiff
%: %.ad
	cp -- $< $@

nodist_bin_SCRIPTS = mailbox-preview
%: %.py
	cp -- $< $@

MOSTLYCLEANFILES = $(appdefault_DATA) $(nodist_bin_SCRIPTS)
distclean-local:
	rm -rf __pycache__

# "configure" normally sets appdefaultdir for each system with "pkg-config",
# which returns an absolute pathname.  "make distcheck" doesn't use DESTDIR
# doing its test "make install", so it needs some value relative to a
# Makefile variable, so that it doesn't install into the real directory.
DISTCHECK_CONFIGURE_FLAGS = --with-appdefaultdir=\$${datadir}/X11/app-defaults

dist_man1_MANS = xlbiff.man mailbox-preview.man

EXTRA_DIST = README.md README.bulk XLbiff.ad \
    $(bin_SCRIPTS) \
    Bcheck Bscan \
    tests/utilities.sh tests/test-scan-interface.sh \
    tests/test-doc-format.sh tests/test-windowing.sh \
    mailbox-preview-test.py

# Compute mtime of newest project source file, for reproducible dist file.
DATED_SRCS = $(EXTRA_DIST) configure.ac Makefile.am \
    $(xlbiff_SOURCES) $(dist_xmhform_DATA) $(dist_man1_MANS) \
    COPYING NEWS TODO
CLAMP_DATE = $(shell cd $(srcdir) && \
    stat --dereference --format=%Y $(DATED_SRCS) | sort -nr | head -1)

# Rule modified from automake 1.16.1 to write a reproducible dist file.
dist-gzip: distdir
	find $(distdir) -perm /go+w -exec chmod go-w '{}' +
	LANG= LC_COLLATE= GZIP= tar --sort=name \
	    --owner=0 --group=0 --numeric-owner \
	    --mtime=@$(CLAMP_DATE) --clamp-mtime \
	    -chozf $(distdir).tar.gz -- $(distdir)
	$(am__post_remove_distdir)

# aid for building Debian source package
debian-orig-dist: dist
	mv xlbiff-$(VERSION).tar.gz ../xlbiff_$(VERSION).orig.tar.gz
.PHONY: debian-orig-dist