File: Makefile.am

package info (click to toggle)
sheepdog 0.8.3-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 3,364 kB
  • ctags: 3,951
  • sloc: ansic: 30,552; sh: 3,573; perl: 2,924; asm: 453; makefile: 391; python: 192
file content (32 lines) | stat: -rw-r--r-- 774 bytes parent folder | download | duplicates (3)
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
28
29
30
31
32
MAINTAINERCLEANFILES    = Makefile.in

EXTRA_DIST		= sheepdog.in

noinst_HEADERS		= checkarch.sh vditest gen_man.pl gen_bash_completion.pl

initscript_SCRIPTS	= sheepdog
initscriptdir		= $(INITDDIR)

completion_DATA		= dog
completiondir		= $(sysconfdir)/bash_completion.d

dog: gen_bash_completion.pl Makefile
	rm -f $@-t $@
	$(top_srcdir)/script/gen_bash_completion.pl $(top_builddir)/dog/dog > $@-t
	mv $@-t $@

%: %.in Makefile
	rm -f $@-t $@
	sed \
		-e 's#@''SBINDIR@#$(sbindir)#g' \
		-e 's#@''SYSCONFDIR@#$(sysconfdir)#g' \
		-e 's#@''INITDDIR@#$(INITDDIR)#g' \
		-e 's#@''LOCALSTATEDIR@#$(localstatedir)#g' \
		$< > $@-t
	chmod 0755 $@-t
	mv $@-t $@

all-local: $(initscript_SCRIPTS) $(completion_DATA)

clean-local:
	rm -rf $(initscript_SCRIPTS) $(completion_DATA)