Makefile.am 674 Bytes
Newer Older
1
2
3
4
pkglibexecdir = $(libexecdir)/@PACKAGE@

pkglibexec_SCRIPTS = b10-cmdctl

5
b10_cmdctldir = $(DESTDIR)$(pkgdatadir)
6
# TODO: this is dangerous -- will overwrite!
7
b10_cmdctl_DATA = cmdctl-accounts.csv cmdctl-keyfile.pem cmdctl-certfile.pem cmdctl.spec
8

Jeremy C. Reed's avatar
Jeremy C. Reed committed
9
CLEANFILES=	b10-cmdctl
10
11
12

# TODO: does this need $$(DESTDIR) also?
# this is done here since configure.ac AC_OUTPUT doesn't expand exec_prefix
13
14
b10-cmdctl: cmdctl.py
	$(SED) "s|@@PYTHONPATH@@|@pyexecdir@|" cmdctl.py >$@
15
	chmod a+x $@
16
17

install-data-local:
18
19
20
	chmod go-rwx $(DESTDIR)$(pkgdatadir)/cmdctl-accounts.csv
	chmod go-rwx $(DESTDIR)$(pkgdatadir)/cmdctl-certfile.pem
	chmod go-rwx $(DESTDIR)$(pkgdatadir)/cmdctl-keyfile.pem