File: Makefile.am

package info (click to toggle)
ledcontrol 0.5.2-6
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 796 kB
  • ctags: 259
  • sloc: ansic: 3,264; sh: 848; makefile: 180; perl: 49
file content (23 lines) | stat: -rw-r--r-- 967 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

scriptdir=@datadir_int@
script_SCRIPTS = file.sh load.sh netload.sh ping.sh ppp.sh size.sh startup.sh

EXTRA_DIST = $(script_SCRIPTS) ledcontrol.conf.sample

install-data-local:
	@#
	@# Smart installation of ledcontrol.conf, don't overwrite.
	@#
	mkdir -p "$(DESTDIR)@sysconfdir_int@"
	@if test -e "$(DESTDIR)@sysconfdir_int@/ledcontrol.conf" ; then \
	  if ! diff ledcontrol.conf.sample "$(DESTDIR)@sysconfdir_int@/ledcontrol.conf" 1>/dev/null 2>/dev/null; then \
	    echo $(INSTALL_DATA) ledcontrol.conf.sample "$(DESTDIR)@sysconfdir_int@/ledcontrol.conf.sample" ;\
	    $(INSTALL_DATA) ledcontrol.conf.sample "$(DESTDIR)@sysconfdir_int@/ledcontrol.conf.sample" ;\
	    echo LEDCCONF >> /tmp/MSG.ledcontrol ;\
	  fi ;\
	else \
	  echo $(INSTALL_DATA) ledcontrol.conf.sample "$(DESTDIR)@sysconfdir_int@/ledcontrol.conf" ;\
	  $(INSTALL_DATA) ledcontrol.conf.sample "$(DESTDIR)@sysconfdir_int@/ledcontrol.conf" ;\
	  echo LEDCCONFNEW >> /tmp/MSG.ledcontrol ;\
	fi