File: Makefile.am

package info (click to toggle)
sensible-utils 0.0.12
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 424 kB
  • sloc: sh: 715; makefile: 142; sed: 88
file content (28 lines) | stat: -rw-r--r-- 625 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
AUTOMAKE_OPTIONS = foreign
CLOCAL_AMFLAGS = -I m4/

SUBDIRS = man

TESTS = test/ed-as-sensible-editor test/echo-as-browser
AM_TESTS_ENVIRONMENT=\
    PATH="$(topsrcdir):$$PATH"; export PATH;

binpkgdatadir = $(pkgdatadir)/bin

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


select-editor: Makefile
	rm -f $@ $@.tmp
	$(edit) '$(srcdir)/$@.in' >$@.tmp
	chmod +x $@.tmp
	chmod a-w $@.tmp
	mv $@.tmp $@

select-editor: $(srcdir)/select-editor.in


bin_SCRIPTS = sensible-browser sensible-editor sensible-pager select-editor
binpkgdata_SCRIPTS = tools/gettext