mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-26 15:13:27 +01:00
Makefile: try to fix Tox/toxic#307
@henriqueleng please test it and report back if it works for you.
This commit is contained in:
parent
1a7eaeddba
commit
5a2c341259
@ -13,7 +13,8 @@ install: $(BUILD_DIR)/toxic
|
|||||||
@for f in $(DATAFILES) ; do \
|
@for f in $(DATAFILES) ; do \
|
||||||
install -m 0644 $(MISC_DIR)/$$f $(abspath $(DESTDIR)/$(DATADIR)/$$f) ;\
|
install -m 0644 $(MISC_DIR)/$$f $(abspath $(DESTDIR)/$(DATADIR)/$$f) ;\
|
||||||
file=$(abspath $(DESTDIR)/$(DATADIR)/$$f) ;\
|
file=$(abspath $(DESTDIR)/$(DATADIR)/$$f) ;\
|
||||||
sed -i'' -e 's:__DATADIR__:'$(abspath $(DATADIR))':g' $$file ;\
|
sed -e 's:__DATADIR__:'$(abspath $(DATADIR))':g' $$file > temp_file && \
|
||||||
|
mv temp_file $$file ;\
|
||||||
done
|
done
|
||||||
@mkdir -p $(abspath $(DESTDIR)/$(DATADIR))/sounds
|
@mkdir -p $(abspath $(DESTDIR)/$(DATADIR))/sounds
|
||||||
@for f in $(SNDFILES) ; do \
|
@for f in $(SNDFILES) ; do \
|
||||||
@ -30,8 +31,10 @@ install: $(BUILD_DIR)/toxic
|
|||||||
file=$$section/$$f ;\
|
file=$$section/$$f ;\
|
||||||
mkdir -p $$section ;\
|
mkdir -p $$section ;\
|
||||||
install -m 0644 $(DOC_DIR)/$$f $$file ;\
|
install -m 0644 $(DOC_DIR)/$$f $$file ;\
|
||||||
sed -i'' -e 's:__VERSION__:'$(VERSION)':g' $$file ;\
|
sed -e 's:__VERSION__:'$(VERSION)':g' $$file > temp_file && \
|
||||||
sed -i'' -e 's:__DATADIR__:'$(abspath $(DATADIR))':g' $$file ;\
|
mv temp_file $$file ;\
|
||||||
|
sed -e 's:__DATADIR__:'$(abspath $(DATADIR))':g' $$file > temp_file && \
|
||||||
|
mv temp_file $$file ;\
|
||||||
gzip -f -9 $$file ;\
|
gzip -f -9 $$file ;\
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user