Makefile.am 712 Bytes
Newer Older
Nikos Skalkotos's avatar
Nikos Skalkotos committed
1
2
3
commondir=$(datarootdir)/$(PACKAGE)
scriptsdir=$(libdir)/$(PACKAGE)
tasksdir=$(scriptsdir)/tasks
Nikos Skalkotos's avatar
Nikos Skalkotos committed
4
export commondir scriptsdir tasksdir
Nikos Skalkotos's avatar
Nikos Skalkotos committed
5
6

SUBDIRS = tasks
Nikos Skalkotos's avatar
Nikos Skalkotos committed
7
8

dist_doc_DATA = COPYING AUTHORS ChangeLog
Nikos Skalkotos's avatar
Nikos Skalkotos committed
9
dist_bin_SCRIPTS = snf-image-helper
10
dist_scripts_SCRIPTS= snf-passtohash.py inject-files.py
11
dist_common_DATA = common.sh unattend.xml
Nikos Skalkotos's avatar
Nikos Skalkotos committed
12
13

edit = sed \
Nikos Skalkotos's avatar
Nikos Skalkotos committed
14
	-e 's|@commondir[@]|$(commondir)|g' \
Nikos Skalkotos's avatar
Nikos Skalkotos committed
15
16
	-e 's|@scriptsdir[@]|$(scriptsdir)|g' \
	-e 's|@tasksdir[@]|$(tasksdir)|g' \
Nikos Skalkotos's avatar
Nikos Skalkotos committed
17
18
19
20
21
22
23
24
25
26
	-e 's|@RESIZE2FS[@]|$(RESIZE2FS)|g' \
	-e 's|@XMLSTARLET[@]|$(XMLSTARLET)|g'

%:%.in Makefile
	rm -f $@ $@.tmp
	srcdir=''; \
		   test -f ./$@.in || srcdir=$(srcdir)/; \
		   $(edit) $${srcdir}$@.in >$@.tmp
	mv $@.tmp $@

Nikos Skalkotos's avatar
Nikos Skalkotos committed
27
CLEANFILES = snf-image-helper