diff options
author | pommicket <pommicket@gmail.com> | 2025-02-25 22:19:37 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2025-02-25 22:19:37 -0500 |
commit | b88b34dbd672ac2b58d4f7c12f96fa79337cfe1f (patch) | |
tree | 60bbf7ca02eaa98eca372377f1557cb19e0de463 /Makefile | |
parent | e78c40d08e324b98f62c88c055b5194ce2a7f4f2 (diff) |
start work on application
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -1,3 +1,5 @@ +INSTALL_PREFIX?=/usr/local + camlet.debug: meson.build *.[ch] 3rd_party/*.[ch] debug/setup meson compile -C debug ln -sf debug/camlet camlet.debug @@ -13,3 +15,21 @@ release/setup2: rm -rf release meson setup --buildtype=release release touch release/setup2 +camlet.deb: release control + rm -rf tmp + mkdir -p tmp/camlet/usr/bin tmp/camlet/DEBIAN tmp/camlet/usr/share/applications tmp/camlet/usr/share/icons/hicolor/48x48/apps + cp release/camlet tmp/camlet/usr/bin/ + cp camlet.desktop tmp/camlet/usr/share/applications/ + cp camlet.png tmp/camlet/usr/share/icons/hicolor/48x48/apps + cp control tmp/camlet/DEBIAN/ + dpkg-deb --build tmp/camlet + rm -rf tmp +install: release + @[ -w $(INSTALL_PREFIX) ] || { echo "You need permission to write to $(INSTALL_PREFIX). Try running with sudo/as root." && exit 1; } + mkdir -p $(INSTALL_PREFIX)/bin $(INSTALL_PREFIX)/share/applications $(INSTALL_PREFIX)/share/icons/hicolor/48x48/apps + install -m 755 release/camlet $(INSTALL_PREFIX)/bin + install -m 644 camlet.desktop $(INSTALL_PREFIX)/share/applications + install -m 644 camlet.png $(INSTALL_PREFIX)/share/icons/hicolor/48x48/apps +uninstall: + @[ -w $(INSTALL_PREFIX) ] || { echo "You need permission to write to $(INSTALL_PREFIX). Try running with sudo/as root." && exit 1; } + rm -f $(INSTALL_PREFIX)/bin/camlet $(INSTALL_PREFIX)/share/applications/camlet.desktop $(INSTALL_PREFIX)/share/icons/hicolor/48x48/apps/camlet.png |