File: Makefile.am

package info (click to toggle)
idjc 0.8.17-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 9,628 kB
  • sloc: python: 20,415; ansic: 15,941; sh: 4,869; makefile: 189; sed: 16
file content (67 lines) | stat: -rw-r--r-- 2,097 bytes parent folder | download
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
SUBDIRS = po c python artwork man doc

EXTRA_SCRIPTS=
nodist_bin_SCRIPTS=${PACKAGE_NAME}
dist_noinst_SCRIPTS=idjc.in.in bootstrap
nodist_doc_DATA=AUTHORS.gz NEWS.gz README.gz ChangeLog.gz
docdir=${prefix}/share/doc/${PACKAGE_NAME}-${PACKAGE_VERSION}
dist_noinst_DATA=idjc.desktop.in.in idjc.appdata.xml.in.in
nodist_appmenu_DATA=${PACKAGE_NAME}.desktop
appmenudir=${prefix}/share/applications
nodist_appdata_DATA=${PACKAGE_NAME}.appdata.xml
appdatadir=${datadir}/appdata
nodist_pkgdata_DATA=buildinfo

${PACKAGE_NAME}: idjc.in
	@sed -e 's|$${prefix}|${prefix}|g' -e 's|$${pkglibdir}|${pkglibdir}|g' $? >$@

${PACKAGE_NAME}.desktop: idjc.desktop.in
	@sed -e 's|$${prefix}|${prefix}|g' -e 's|$${exec_prefix}|${exec_prefix}|g' $? >$@

${PACKAGE_NAME}.appdata.xml: idjc.appdata.xml.in
	@sed -e 's|$${prefix}|${prefix}|g' -e 's|$${exec_prefix}|${exec_prefix}|g' $? >$@

AUTHORS.gz: AUTHORS
	@ gzip -c $? >$@
	 
NEWS.gz: NEWS
	@ gzip -c $? >$@
	
README.gz: README
	@ gzip -c $? >$@
	
ChangeLog.gz: ChangeLog
	@ gzip -c $? >$@

buildinfo:
if GIT_VERSION_CONTROL
	echo Commit hash: $$(git log -n1 "--pretty=format:%H") > buildinfo
	echo Commit date: $$(git log -n1 "--pretty=format:%aD") >> buildinfo
	echo Repo status: $$($(top_srcdir)/repostatus) >> buildinfo
	echo Remote URL: $$(git config --get remote.origin.url) >> buildinfo
	echo >> buildinfo
else
	rm buildinfo
endif
	if test -n "$$SOURCE_DATE_EPOCH"; then \
		echo Build date: $$(date --utc --date="@$${SOURCE_DATE_EPOCH}" -R) >> buildinfo; \
	else \
		echo Build date: $$(date -R) >> buildinfo; \
	fi

clean-local:
	rm -f buildinfo ChangeLog.gz README.gz NEWS.gz AUTHORS.gz ${PACKAGE_NAME}.desktop ${PACKAGE_NAME}.appdata.xml ${PACKAGE_NAME}

dtdist:
	make dist
	mv ${PACKAGE_TARNAME}-${PACKAGE_VERSION}.tar.gz ${HOME}/Desktop

sfpublish:
	make dist
	curl --retry 3 --connect-timeout 10 -T ${PACKAGE_TARNAME}-${PACKAGE_VERSION}.tar.gz -nk sftp://frs.sourceforge.net/home/frs/project/i/id/idjc/idjc/0.8/

.PHONY: buildinfo dtdist sfpublish ${PACKAGE_NAME} ${PACKAGE_NAME}.desktop

ACLOCAL_AMFLAGS = -I m4

EXTRA_DIST = config.rpath m4/ChangeLog