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
|
## Process this file with automake to produce Makefile.in
bin_SCRIPTS = linpac
EXTRA_DIST = linpac.in
CLEANFILES = linpac
## replace autoconf variables in scripts with Makefile variables that will
## be resolved at build/install time.
edit = sed \
-e 's|@VERSION[@]|$(VERSION)|g' \
-e 's|@bindir[@]|$(bindir)|g' \
-e 's|@pkgdatadir[@]|$(pkgdatadir)|g' \
-e 's|@pkglibexecdir[@]|$(pkglibexecdir)|g' \
-e 's|@prefix[@]|$(prefix)|g'
linpac: Makefile
rm -f $@ $@.tmp
srcdir=''; \
test -f ./$@.in || srcdir=$(srcdir)/; \
$(edit) $${srcdir}$@.in >$@.tmp
chmod +x $@.tmp
chmod a-w $@.tmp
mv $@.tmp $@
linpac: $(srcdir)/linpac.in
|