]>
Commit | Line | Data |
---|---|---|
3de4d169 FCE |
1 | # Makefile.am --- automake input file for systemtap man pages |
2 | ## process this file with automake to produce Makefile.in | |
3 | ||
4 | AUTOMAKE_OPTIONS = no-dist foreign subdir-objects | |
5 | ||
6 | # if we have python3 | |
7 | if HAVE_PYTHON3_PROBES | |
8 | ||
9 | man8_MANS = stap-exporter.8 | |
10 | ||
11 | install-data-local: | |
b8550627 FCE |
12 | $(MKDIR_P) "$(DESTDIR)$(sysconfdir)/stap-exporter" |
13 | cd $(srcdir)/default; find . | cpio -pdmv "$(DESTDIR)$(sysconfdir)/stap-exporter/" | |
3de4d169 | 14 | $(MKDIR_P) "$(DESTDIR)$(prefix)/lib/systemd/system" |
b8550627 | 15 | $(MKDIR_P) "$(DESTDIR)$(sysconfdir)/sysconfig" |
3de4d169 | 16 | $(INSTALL_DATA) $(srcdir)/stap-exporter.service "$(DESTDIR)$(prefix)/lib/systemd/system" |
b8550627 | 17 | $(INSTALL_DATA) $(srcdir)/stap-exporter.options "$(DESTDIR)$(sysconfdir)/sysconfig/stap-exporter" |
3de4d169 FCE |
18 | |
19 | uninstall-local: | |
20 | rm -f "$(DESTDIR)$(prefix)/lib/systemd/system/stap-exporter.service" | |
b8550627 FCE |
21 | rm -f "$(DESTDIR)$(sysconfdir)/sysconfig/stap-exporter" |
22 | rm -rf "$(DESTDIR)$(sysconfdir)/stap-exporter" | |
3de4d169 FCE |
23 | |
24 | sbin_SCRIPTS = stap-exporter | |
25 | ||
26 | stap-exporter: $(srcdir)/stap-exporter.in | |
27 | sed -e "s#%sysconfdir%#$(sysconfdir)#g" < $< > $@ | |
28 | ||
29 | clean-local: | |
30 | rm -f stap-exporter | |
31 | ||
32 | endif |