root / helper / Makefile.am @ c4447efb
History | View | Annotate | Download (770 Bytes)
1 |
SUBDIRS = tasks |
---|---|
2 |
|
3 |
base_name=$(subst -helper,,$(PACKAGE)) |
4 |
initdir=$(sysconfdir) |
5 |
commondir=$(datarootdir)/$(base_name) |
6 |
export base_name |
7 |
export commondir |
8 |
|
9 |
dist_doc_DATA = COPYING AUTHORS ChangeLog |
10 |
dist_init_SCRIPTS = rc.local snf-passtohash.py |
11 |
dist_common_SCRIPTS= snf-passtohash.py |
12 |
dist_common_DATA = common.sh |
13 |
|
14 |
edit = sed \ |
15 |
-e 's|@sysconfdir[@]|$(sysconfdir)|g' \ |
16 |
-e 's|@localstatedir[@]|$(localstatedir)|g' \ |
17 |
-e 's|@datarootdir[@]|$(datarootdir)|g' \ |
18 |
-e 's|@base_name[@]|$(base_name)|g'\ |
19 |
-e 's|@RESIZE2FS[@]|$(RESIZE2FS)|g' \ |
20 |
-e 's|@XMLSTARLET[@]|$(XMLSTARLET)|g' |
21 |
|
22 |
%:%.in Makefile |
23 |
@echo "Real Path is: $(rootdir)" |
24 |
rm -f $@ $@.tmp |
25 |
srcdir=''; \ |
26 |
test -f ./$@.in || srcdir=$(srcdir)/; \ |
27 |
$(edit) $${srcdir}$@.in >$@.tmp |
28 |
mv $@.tmp $@ |
29 |
|
30 |
CLEANFILES = rc.local |