Skip to content

Commit

Permalink
create a symlink from BINDIR/whatweb to LIBDIR/whatweb. urbanadventur…
Browse files Browse the repository at this point in the history
…er#283 suggested by @blskv
  • Loading branch information
urbanadventurer committed Nov 19, 2019
1 parent b6a32e8 commit 99f05c4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,15 @@ install:
# upgrade/installation will leave the my-plugins folder
rm -Rf $(DESTDIR)$(BINPATH)/$(NAME) $(DESTDIR)$(MANPATH)/man1/$(NAME).1 $(DESTDIR)$(MANPATH)/man1/$(NAME).1.gz $(DESTDIR)$(DOCPATH)/$(NAME) $(DESTDIR)$(LIBPATH)/$(NAME)/plugins-disabled $(DESTDIR)$(LIBPATH)/$(NAME)/plugins $(DESTDIR)$(LIBPATH)/$(NAME)/lib $(DESTDIR)$(LIBPATH)/$(NAME)/plugin-development $(DESTDIR)$(LIBPATH)/$(NAME)/addons

install -p -D -m 755 $(NAME) $(DESTDIR)$(BINPATH)/$(NAME)
install -p -D -m 644 $(NAME).1 $(DESTDIR)$(MANPATH)/man1/$(NAME).1
gzip -f $(DESTDIR)$(MANPATH)/man1/$(NAME).1
install -d $(DESTDIR)$(LIBPATH)/$(NAME)
install -d $(DESTDIR)$(DOCPATH)/$(NAME)

# copy whatweb into LIBPATH/NAME/ and create a symbolic link in the BINPATH
install -p -D -m 755 $(NAME) $(DESTDIR)$(LIBPATH)/$(NAME)
ln -s $(DESTDIR)$(LIBPATH)/$(NAME)/$(NAME) $(DESTDIR)$(BINPATH)/$(NAME)

cp -p -r my-plugins $(DESTDIR)$(LIBPATH)/$(NAME)/
cp -p -r plugins-disabled plugins lib plugin-development addons $(DESTDIR)$(LIBPATH)/$(NAME)/
cp -p -r CHANGELOG INSTALL LICENSE README.md whatweb.xsl $(DESTDIR)$(DOCPATH)/$(NAME)/
Expand All @@ -23,4 +27,3 @@ clean:
# clean will remove your my-plugins folder. be warned
rm -Rf $(DESTDIR)$(BINPATH)/$(NAME) $(DESTDIR)$(MANPATH)/man1/$(NAME).1 $(DESTDIR)$(MANPATH)/man1/$(NAME).1.gz $(DESTDIR)$(LIBPATH)/$(NAME) $(DESTDIR)$(DOCPATH)/$(NAME)


0 comments on commit 99f05c4

Please sign in to comment.