diff --git a/src/Makefile b/src/Makefile index 3724a2b..2e88c25 100644 --- a/src/Makefile +++ b/src/Makefile @@ -16,7 +16,7 @@ GLIB_COMPILE_RESOURCES = $(shell $(PKGCONFIG) --variable=glib_compile_resources BUILT_SRC = resources.c -_OBJ = main.o ui.o h_prop.o util.o read_config.o $(BUILT_SRC:.c=.o) +_OBJ = main.o ui.o h_prop.o util.o read_config.o about_ui.o $(BUILT_SRC:.c=.o) OBJ = $(patsubst %,$(ODIR)/%,$(_OBJ)) # Determine this makefile's path. @@ -41,22 +41,30 @@ wihotspot-gui: $(OBJ) $(CC) -o $(ODIR)/$@ $^ $(CFLAGS) $(LIBS) install: $(ODIR)/wihotspot-gui - install -Dm644 desktop/hotspot.png $(DESTDIR)$(PREFIX)/share/pixmaps/wihotspot.png + install -Dm644 desktop/icons/hotspot@64.png $(DESTDIR)$(PREFIX)/share/pixmaps/wihotspot.png + install -Dm644 desktop/icons/hotspot@48.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/48x48/apps/wihotspot.png + install -Dm644 desktop/icons/hotspot@64.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/64x64/apps/wihotspot.png + install -Dm644 desktop/icons/hotspot@256.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/256x256/apps/wihotspot.png + install -Dm644 desktop/icons/hotspot@512.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/512x512/apps/wihotspot.png + install -Dm644 desktop/icons/hotspot.svg $(DESTDIR)$(PREFIX)/share/icons/hicolor/scalable/apps/wihotspot.svg 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 -f $(DESTDIR)$(PREFIX)/share/pixmaps/wihotspot.xpm rm -f $(DESTDIR)$(PREFIX)/share/pixmaps/wihotspot.png + rm -f $(DESTDIR)$(PREFIX)/share/icons/hicolor/48x48/apps/wihotspot.png + rm -f $(DESTDIR)$(PREFIX)/share/icons/hicolor/64x64/apps/wihotspot.png + rm -f $(DESTDIR)$(PREFIX)/share/icons/hicolor/256x256/apps/wihotspot.png + rm -f $(DESTDIR)$(PREFIX)/share/icons/hicolor/512x512/apps/wihotspot.png + rm -f $(DESTDIR)$(PREFIX)/share/icons/hicolor/scalable/apps/wihotspot.svg rm -f $(DESTDIR)$(PREFIX)/share/applications/$(APP_NAME).desktop rm -f $(DESTDIR)$(BINDIR)/$(APP_GUI_BINARY) cd scripts && $(MAKE) uninstall clean-old: - rm -rf $(DESTDIR)/usr/share/wihotspot_gui - rm -rf $(DESTDIR)/usr/share/wihotspot - rm -f $(DESTDIR)/usr/bin/wihotspot_gui - rm -f $(DESTDIR)/usr/bin/wihotspot + rm -f $(DESTDIR)$(PREFIX)/share/pixmaps/wihotspot.png clean: rm -f $(ODIR)/*.o diff --git a/src/desktop/icons/hotspot.svg b/src/desktop/icons/hotspot.svg new file mode 100644 index 0000000..336f1ee --- /dev/null +++ b/src/desktop/icons/hotspot.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/desktop/icons/hotspot@256.png b/src/desktop/icons/hotspot@256.png new file mode 100644 index 0000000..5eed709 Binary files /dev/null and b/src/desktop/icons/hotspot@256.png differ diff --git a/src/desktop/icons/hotspot@48.png b/src/desktop/icons/hotspot@48.png new file mode 100644 index 0000000..5539683 Binary files /dev/null and b/src/desktop/icons/hotspot@48.png differ diff --git a/src/desktop/hotspot.png b/src/desktop/icons/hotspot@512.png similarity index 100% rename from src/desktop/hotspot.png rename to src/desktop/icons/hotspot@512.png diff --git a/src/desktop/icons/hotspot@64.png b/src/desktop/icons/hotspot@64.png new file mode 100644 index 0000000..4ce6968 Binary files /dev/null and b/src/desktop/icons/hotspot@64.png differ