summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 3b22ea19..27aa07d3 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,9 @@
RPM=$(HOME)/rpm
NAME = drakwizard
TAR = $(NAME).tar.bz2
+
+WIZ_HOME=${prefix}/share/wizards
+
WIZ = common\
server_wizard\
dhcp_wizard\
@@ -29,8 +32,9 @@ install:
for l in $(WIZ); do \
$(MAKE) -C $$l $@; \
done
- find ${prefix}/share/wizards -regex ".*\.wiz$$\|.*.pm$$\|.*\.sh$$" -exec \
- perl -i -pe "s|__WIZ_HOME__|/usr/share/wizards|g" \{\} \;
+ find $(WIZ_HOME) ".*\.wiz$$\|.*.pm$$\|.*\.sh$$" -exec \
+ perl -i -pe "s|__WIZ_HOME__|$(WIZ_HOME)|g" \{\} \;
+ perl -i -pe "s|__WIZ_HOME__|$(WIZ_HOME)|g" drakwizard.pl
clean:
$(MAKE) -C po $@
@@ -57,3 +61,4 @@ test: clean_test
cp Wizard.dtd Makefile drakwizard.pl drakwizard.spec test.pl test
find test -regex ".*\.wiz$$\|.*\.pm$$\|.*\.sh$$" -exec \
perl -i -pe "s|__WIZ_HOME__|$(PWD)/test|g" \{\} \;
+ perl -i -pe "s|__WIZ_HOME__|$(PWD)/test|g" test/drakwizard.pl \ No newline at end of file