File: Makefile.am

package info (click to toggle)
watchdog 5.4-10lenny2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 936 kB
  • ctags: 684
  • sloc: ansic: 6,294; sh: 1,266; makefile: 72
file content (22 lines) | stat: -rw-r--r-- 693 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

man_MANS = watchdog.8 wd_keepalive.8 watchdog.conf.5

# This does not work. subdirs are not copied correctly
# for make dist... :(
EXTRA_DIST = $(man_MANS) include examples ChangeLog watchdog.lsm \
		watchdog.conf rc.watchdog.debian rc.watchdog.redhat

SUBDIRS = src 

CONFIG_FILENAME = @CONFIG_FILENAME@

install-etc-local: watchdog.conf
	@if test -e $(DESTDIR)$(CONFIG_FILENAME) ; then \
	        echo "NOT installing $(CONFIG_FILENAME) - exists already"; \
	else \
	        echo "installing $(CONFIG_FILENAME)"; \
		$(mkinstalldirs) `dirname $(DESTDIR)$(CONFIG_FILENAME)`; \
	        $(INSTALL_DATA) watchdog.conf $(DESTDIR)$(CONFIG_FILENAME); \
	fi

install-data-local: install-etc-local