mirror of
https://github.com/lakinduakash/linux-wifi-hotspot.git
synced 2024-11-24 21:20:12 +00:00
Update Makefile
This commit is contained in:
parent
083fdf2865
commit
d81d3ebf21
@ -9,7 +9,6 @@ APP_GUI_BINARY="wihotspot-gui"
|
||||
|
||||
PREFIX=/usr
|
||||
BINDIR=$(PREFIX)/bin
|
||||
APP_DIR=$(PREFIX)/share/$(APP_NAME)
|
||||
|
||||
ODIR=../build
|
||||
|
||||
@ -42,15 +41,13 @@ wihotspot-gui: $(OBJ)
|
||||
$(CC) -o $(ODIR)/$@ $^ $(CFLAGS) $(LIBS)
|
||||
|
||||
install: $(ODIR)/wihotspot-gui
|
||||
mkdir -p $(DESTDIR)$(APP_DIR)
|
||||
install -Dm644 desktop/hotspot.png $(DESTDIR)$(APP_DIR)/hotspot.png
|
||||
install -Dm644 desktop/wifihotspot.desktop $(DESTDIR)$(APP_DIR)/$(APP_NAME).desktop
|
||||
install -Dm644 desktop/hotspot.png $(DESTDIR)$(PREFIX)/share/pixmaps/wihotspot.png
|
||||
install -Dm644 desktop/wifihotspot.desktop $(DESTDIR)$(PREFIX)/share/applications/$(APP_NAME).desktop
|
||||
install -Dm755 $(ODIR)/wihotspot-gui $(DESTDIR)$(BINDIR)/$(APP_GUI_BINARY)
|
||||
cd scripts && $(MAKE) install
|
||||
|
||||
uninstall:
|
||||
rm -rf $(DESTDIR)$(APP_DIR)
|
||||
rm -f $(DESTDIR)$(PREFIX)/share/pixmaps/wihotspot.png
|
||||
rm -f $(DESTDIR)$(PREFIX)/share/applications/$(APP_NAME).desktop
|
||||
rm -f $(DESTDIR)$(BINDIR)/$(APP_GUI_BINARY)
|
||||
cd scripts && $(MAKE) uninstall
|
||||
@ -64,4 +61,4 @@ clean-old:
|
||||
clean:
|
||||
rm -f $(ODIR)/*.o
|
||||
rm -f ui/$(BUILT_SRC)
|
||||
rm -f $(ODIR)/wihotspot-gui
|
||||
rm -f $(ODIR)/wihotspot-gui
|
||||
|
Loading…
Reference in New Issue
Block a user