Statistics
| Branch: | Tag: | Revision:

root / snf-image-helper / Makefile.am @ 21be5a41

History | View | Annotate | Download (754 Bytes)

1
commondir=$(datarootdir)/$(PACKAGE)
2
scriptsdir=$(libdir)/$(PACKAGE)
3
tasksdir=$(scriptsdir)/tasks
4
export commondir scriptsdir tasksdir
5

    
6
SUBDIRS = tasks
7

    
8
dist_doc_DATA = COPYING AUTHORS ChangeLog
9
dist_bin_SCRIPTS = snf-image-helper
10
dist_scripts_SCRIPTS= snf-passtohash.py inject-files.py decode-properties.py \
11
								fix_gpt.py
12
dist_common_DATA = common.sh unattend.xml
13

    
14
edit = sed \
15
	-e 's|@commondir[@]|$(commondir)|g' \
16
	-e 's|@scriptsdir[@]|$(scriptsdir)|g' \
17
	-e 's|@tasksdir[@]|$(tasksdir)|g' \
18
	-e 's|@RESIZE2FS[@]|$(RESIZE2FS)|g' \
19
	-e 's|@XMLSTARLET[@]|$(XMLSTARLET)|g'
20

    
21
%:%.in Makefile
22
	rm -f $@ $@.tmp
23
	srcdir=''; \
24
		   test -f ./$@.in || srcdir=$(srcdir)/; \
25
		   $(edit) $${srcdir}$@.in >$@.tmp
26
	mv $@.tmp $@
27

    
28
CLEANFILES = snf-image-helper