Skip to content

Commit

Permalink
install -D options is unportable, create target directories with mkdir
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Aug 22, 2014
1 parent c943d2e commit c2317a5
Showing 1 changed file with 37 additions and 21 deletions.
58 changes: 37 additions & 21 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,27 +17,43 @@ utox: $(OBJ)
$(CC) $(CFLAGS) -o utox $(OBJ) $(LDFLAGS)

install: utox
# mkdir -pv $(DESTDIR)$(PREFIX)/bin
install -D -m 0755 utox $(DESTDIR)$(PREFIX)/bin/utox

install -D -m 644 icons/utox-14x14.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/14x14/apps/utox.png
install -D -m 644 icons/utox-16x16.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/16x16/apps/utox.png
install -D -m 644 icons/utox-22x22.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/22x22/apps/utox.png
install -D -m 644 icons/utox-24x24.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/24x24/apps/utox.png
install -D -m 644 icons/utox-32x32.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/32x32/apps/utox.png
install -D -m 644 icons/utox-36x36.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/36x36/apps/utox.png
install -D -m 644 icons/utox-48x48.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/48x48/apps/utox.png
install -D -m 644 icons/utox-64x64.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/64x64/apps/utox.png
install -D -m 644 icons/utox-72x72.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/72x72/apps/utox.png
install -D -m 644 icons/utox-96x96.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/96x96/apps/utox.png
install -D -m 644 icons/utox-128x128.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/128x128/apps/utox.png
install -D -m 644 icons/utox-192x192.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/192x192/apps/utox.png
install -D -m 644 icons/utox-256x256.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/256x256/apps/utox.png
install -D -m 644 icons/utox-512x512.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/512x512/apps/utox.png

install -D -m 644 icons/utox.svg $(DESTDIR)$(PREFIX)/share/icons/hicolor/scalable/apps/utox.svg

install -D -m 644 utox.desktop $(DESTDIR)$(PREFIX)/share/applications/utox.desktop
mkdir -p $(DESTDIR)$(PREFIX)/bin
install -m 0755 utox $(DESTDIR)$(PREFIX)/bin/utox

mkdir -p $(DESTDIR)$(PREFIX)/share/icons/hicolor/14x14/apps
install -m 644 icons/utox-14x14.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/14x14/apps/utox.png
mkdir -p $(DESTDIR)$(PREFIX)/share/icons/hicolor/16x16/apps
install -m 644 icons/utox-16x16.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/16x16/apps/utox.png
mkdir -p $(DESTDIR)$(PREFIX)/share/icons/hicolor/22x22/apps
install -m 644 icons/utox-22x22.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/22x22/apps/utox.png
mkdir -p $(DESTDIR)$(PREFIX)/share/icons/hicolor/24x24/apps
install -m 644 icons/utox-24x24.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/24x24/apps/utox.png
mkdir -p $(DESTDIR)$(PREFIX)/share/icons/hicolor/32x32/apps
install -m 644 icons/utox-32x32.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/32x32/apps/utox.png
mkdir -p $(DESTDIR)$(PREFIX)/share/icons/hicolor/36x36/apps
install -m 644 icons/utox-36x36.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/36x36/apps/utox.png
mkdir -p $(DESTDIR)$(PREFIX)/share/icons/hicolor/48x48/apps
install -m 644 icons/utox-48x48.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/48x48/apps/utox.png
mkdir -p $(DESTDIR)$(PREFIX)/share/icons/hicolor/64x64/apps
install -m 644 icons/utox-64x64.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/64x64/apps/utox.png
mkdir -p $(DESTDIR)$(PREFIX)/share/icons/hicolor/72x72/apps
install -m 644 icons/utox-72x72.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/72x72/apps/utox.png
mkdir -p $(DESTDIR)$(PREFIX)/share/icons/hicolor/96x96/apps
install -m 644 icons/utox-96x96.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/96x96/apps/utox.png
mkdir -p $(DESTDIR)$(PREFIX)/share/icons/hicolor/128x128/apps
install -m 644 icons/utox-128x128.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/128x128/apps/utox.png
mkdir -p $(DESTDIR)$(PREFIX)/share/icons/hicolor/192x192/apps
install -m 644 icons/utox-192x192.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/192x192/apps/utox.png
mkdir -p $(DESTDIR)$(PREFIX)/share/icons/hicolor/256x256/apps
install -m 644 icons/utox-256x256.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/256x256/apps/utox.png
mkdir -p $(DESTDIR)$(PREFIX)/share/icons/hicolor/512x512/apps
install -m 644 icons/utox-512x512.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/512x512/apps/utox.png

mkdir -p $(DESTDIR)$(PREFIX)/share/icons/hicolor/scalable/apps
install -m 644 icons/utox.svg $(DESTDIR)$(PREFIX)/share/icons/hicolor/scalable/apps/utox.svg

mkdir -p $(DESTDIR)$(PREFIX)/share/applications
install -m 644 utox.desktop $(DESTDIR)$(PREFIX)/share/applications/utox.desktop

main.o: xlib/main.c xlib/keysym2ucs.c

Expand Down

0 comments on commit c2317a5

Please sign in to comment.