Fix installation for devs.

This commit is contained in:
Glenn Y. Rolland 2013-06-21 14:25:03 +02:00
parent 2f1c58fa67
commit f8e4fc57bd

View file

@ -109,8 +109,8 @@ install-bin:
for binfile in bin/*.rb ; do \ for binfile in bin/*.rb ; do \
BINFILE=`basename $$binfile |sed -e 's/.rb$$//'`; \ BINFILE=`basename $$binfile |sed -e 's/.rb$$//'`; \
install -D -o root -g root -m 755 $$binfile $(BINDIR)/$$BINFILE; \ install -D -o root -g root -m 755 $$binfile $(BINDIR)/$$BINFILE; \
sed -i -e 's|^QASIM_INCLUDE_DIR.*|QASIM_INCLUDE_DIR = "/usr/share/$(NAME)/lib"|' $(BINDIR)/$$BINFILE; \ sed -i -e 's|^QASIM_INCLUDE_DIR.*|QASIM_INCLUDE_DIR = "$(SHAREDIR)/$(NAME)/lib"|' $(BINDIR)/$$BINFILE; \
sed -i -e 's|^QASIM_DATA_DIR.*|QASIM_DATA_DIR = "/usr/share/$(NAME)"|' $(BINDIR)/$$BINFILE; \ sed -i -e 's|^QASIM_DATA_DIR.*|QASIM_DATA_DIR = "$(SHAREDIR)/$(NAME)"|' $(BINDIR)/$$BINFILE; \
done done
#install -D -o root -g root -m 755 $(CURDIR)/bin/$(NAME)-gui.rb $(BINDIR)/$(NAME)-gui #install -D -o root -g root -m 755 $(CURDIR)/bin/$(NAME)-gui.rb $(BINDIR)/$(NAME)-gui
@ -166,8 +166,8 @@ install-data:
## OTHER ## OTHER
.PHONY: destdir .PHONY: tmp/destdir
destdir: dev-install:
rm -fr destdir rm -fr tmp/destdir
fakeroot $(MAKE) install DESTDIR=destdir fakeroot $(MAKE) install DESTDIR=tmp/destdir