Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (729 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
9
dist_bin_SCRIPTS = snf-image-helper
10
dist_scripts_SCRIPTS= hashpwd.py inject-files.py decode-properties.py disklabel.py
11
dist_common_DATA = common.sh unattend.xml
12

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

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

    
27
CLEANFILES = snf-image-helper