- Remove the checks for prior existence of $(XDG_DATA_DIR) and

$(PIXMAPS_DIR): they do not serve any useful purpose and could
  break the build if those directories are missing for some reason
- When disabling wget(1), also change its name to make it obvious
  to the readers of the build log that is is not being executed

Reported by:	linimon
This commit is contained in:
Alexey Dokuchaev 2020-09-04 02:06:26 +00:00
parent 91d4a7f4df
commit 6a6a68433c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=547498

View File

@ -48,7 +48,7 @@
version = $(shell grep -m 1 _RELEASE ../core/init.lua | cut -d ' ' -f4- | \
tr ' ' '_' | tr -d "'")
-WGET = wget -O $@
+WGET = : wget -O $@
+WGET = : wget-is-forbidden-during-build -O $@
# Scintilla.
@ -63,12 +63,14 @@
install $^ $(DESTDIR)$(data_dir)
cp -rL $| $(DESTDIR)$(data_dir)
- ln -s $(subst .., $(data_dir), $^) $(DESTDIR)$(bin_dir)
- if [ -d "$(XDG_DATA_DIR)" ]; then \
+ ln -s $(subst ..,..$(subst $(PREFIX),,$(data_dir)),$^) $(DESTDIR)$(bin_dir)
if [ -d "$(XDG_DATA_DIR)" ]; then \
+ if : ; then \
install -d $(DESTDIR)$(XDG_DATA_DIR); \
install $(desktop_files) $(DESTDIR)$(XDG_DATA_DIR); \
fi
if [ -d "$(PIXMAPS_DIR)" ]; then \
- if [ -d "$(PIXMAPS_DIR)" ]; then \
+ if : ; then \
install -d $(DESTDIR)$(PIXMAPS_DIR); \
- ln -s $(data_dir)/core/images/textadept.svg $(DESTDIR)$(PIXMAPS_DIR); \
- ln -s $(data_dir)/core/images/ta_48x48.png \