aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/Makefile.am
blob: fc0b83b7d697c28326de2f164aab7ee28925d9cd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
AUTOMAKE_OPTIONS = foreign

dist_bin_SCRIPTS = \
	calcurse-upgrade

EXTRA_DIST = \
	calcurse-upgrade.sh.in

CLEANFILES = \
	calcurse-upgrade

edit = sed \
	-e 's|@PACKAGE_VERSION[@]|$(PACKAGE_VERSION)|g'

calcurse-upgrade: calcurse-upgrade.sh.in
	$(AM_V_at)$(RM) "$@"
	$(AM_V_GEN)$(edit) <"$(srcdir)/$<" >"$@"
	$(AM_V_at)chmod +x "$@"
	$(AM_V_at)chmod a-w "$@"