Statistics
| Branch: | Tag: | Revision:

root / snf-image-helper / Makefile.am @ ee78390c

History | View | Annotate | Download (729 Bytes)

1 bf7c33b2 Nikos Skalkotos
commondir=$(datarootdir)/$(PACKAGE)
2 bf7c33b2 Nikos Skalkotos
scriptsdir=$(libdir)/$(PACKAGE)
3 bf7c33b2 Nikos Skalkotos
tasksdir=$(scriptsdir)/tasks
4 80fe7d19 Nikos Skalkotos
export commondir scriptsdir tasksdir
5 bf7c33b2 Nikos Skalkotos
6 bf7c33b2 Nikos Skalkotos
SUBDIRS = tasks
7 d46fb573 Nikos Skalkotos
8 44e1752d Nikos Skalkotos
dist_doc_DATA = COPYING AUTHORS
9 bf7c33b2 Nikos Skalkotos
dist_bin_SCRIPTS = snf-image-helper
10 de34e7aa Nikos Skalkotos
dist_scripts_SCRIPTS= hashpwd.py inject-files.py decode-properties.py disklabel.py
11 61e43304 Nikos Skalkotos
dist_common_DATA = common.sh unattend.xml
12 d46fb573 Nikos Skalkotos
13 d46fb573 Nikos Skalkotos
edit = sed \
14 bf7c33b2 Nikos Skalkotos
	-e 's|@commondir[@]|$(commondir)|g' \
15 80fe7d19 Nikos Skalkotos
	-e 's|@scriptsdir[@]|$(scriptsdir)|g' \
16 80fe7d19 Nikos Skalkotos
	-e 's|@tasksdir[@]|$(tasksdir)|g' \
17 d46fb573 Nikos Skalkotos
	-e 's|@RESIZE2FS[@]|$(RESIZE2FS)|g' \
18 d46fb573 Nikos Skalkotos
	-e 's|@XMLSTARLET[@]|$(XMLSTARLET)|g'
19 d46fb573 Nikos Skalkotos
20 d46fb573 Nikos Skalkotos
%:%.in Makefile
21 d46fb573 Nikos Skalkotos
	rm -f $@ $@.tmp
22 d46fb573 Nikos Skalkotos
	srcdir=''; \
23 d46fb573 Nikos Skalkotos
		   test -f ./$@.in || srcdir=$(srcdir)/; \
24 d46fb573 Nikos Skalkotos
		   $(edit) $${srcdir}$@.in >$@.tmp
25 d46fb573 Nikos Skalkotos
	mv $@.tmp $@
26 d46fb573 Nikos Skalkotos
27 bf7c33b2 Nikos Skalkotos
CLEANFILES = snf-image-helper