Skip to content

Commit be4320e

Browse files
committed
Just run 'make install'
1 parent 05ce9fb commit be4320e

File tree

2 files changed

+9
-14
lines changed

2 files changed

+9
-14
lines changed

Makefile

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
PKG := ldoce5viewer
22
PYTHON := python
33

4-
runqt: qtui qtresource
5-
$(PYTHON) ./ldoce5viewer.py
4+
build: precompile
5+
$(PYTHON) ./setup.py build
6+
7+
install: build
8+
$(PYTHON) ./setup.py install
9+
cp ./ldoce5viewer.desktop /usr/share/applications/
10+
cp ./ldoce5viewer/qtgui/resources/ldoce5viewer.svg /usr/share/pixmaps/
11+
[ -x /usr/bin/update-desktop-database ] && sudo update-desktop-database -q
612

713
sdist: precompile
814
$(PYTHON) ./setup.py sdist
@@ -15,13 +21,6 @@ qtui:
1521
qtresource:
1622
cd $(PKG)/qtgui/resources/; $(MAKE)
1723

18-
build: precompile
19-
$(PYTHON) ./setup.py build
20-
21-
install: build
22-
$(PYTHON) ./setup.py install
23-
24-
2524
.PHONY: clean clean-build
2625
clean: clean-build
2726
cd $(PKG)/qtgui/ui/; $(MAKE) clean

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,7 @@ Installation
4646
1. Enter the following commands in the terminal:
4747

4848
```bash
49-
$ make
50-
$ sudo python ./setup.py install --optimize
51-
$ sudo cp ./ldoce5viewer.desktop /usr/share/applications/
52-
$ sudo cp ./ldoce5viewer/qtgui/resources/ldoce5viewer.svg /usr/share/pixmaps/
53-
$ [ -x /usr/bin/update-desktop-database ] && sudo update-desktop-database -q
49+
$ make install
5450
```
5551

5652
2. Copy the 'ldoce5.data' directory from the LDOCE5 DVD-ROM to an arbitrary location in your HDD or SSD.

0 commit comments

Comments
 (0)