diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-03-01 20:09:06 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-03-01 20:09:55 -0500 |
commit | 04bedad8ef1f6f92873d7bed67f0017db4095e77 (patch) | |
tree | 88e4c5be95599f570db481f8c687fd6672cd0256 /Makefile | |
parent | 2cda3faccf750296225f1a6c0ddc740755841129 (diff) |
.deb installer!
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -25,7 +25,6 @@ install: release chown `logname`:`logname` $(LOCAL_DATA_DIR) cp -r assets $(GLOBAL_DATA_DIR) install -m 644 ted.cfg $(GLOBAL_DATA_DIR) - [ ! -e $(LOCAL_DATA_DIR)/ted.cfg ] && install -o `logname` -g `logname` -m 644 ted.cfg $(LOCAL_DATA_DIR) || : install ted $(INSTALL_BIN_DIR) libpcre2-32.a: pcre2-10.36.zip rm -rf pcre2-10.36 @@ -34,3 +33,17 @@ libpcre2-32.a: pcre2-10.36.zip cd pcre2-10.36/build && cmake -DPCRE2_BUILD_PCRE2_32=ON .. && $(MAKE) -j8 cp pcre2-10.36/build/$@ ./ +ted.deb: release + rm -rf /tmp/ted + mkdir -p /tmp/ted/DEBIAN + mkdir -p /tmp/ted$(INSTALL_BIN_DIR) + mkdir -p /tmp/ted$(GLOBAL_DATA_DIR) + mkdir -p /tmp/ted/usr/share/icons/hicolor/48x48/apps/ + convert assets/icon.bmp -resize 48x48 /tmp/ted/usr/share/icons/hicolor/48x48/apps/ted.png + mkdir -p /tmp/ted/usr/share/applications + cp ted.desktop /tmp/ted/usr/share/applications + cp ted /tmp/ted$(INSTALL_BIN_DIR)/ + cp -r assets ted.cfg /tmp/ted$(GLOBAL_DATA_DIR)/ + cp control /tmp/ted/DEBIAN + dpkg-deb --build /tmp/ted + mv /tmp/ted.deb ./ |