Skip to content

Commit 4defbf3

Browse files
committed
Use BSD install on OS X, since it does work.
Also, remove unused references to direwolf.desktop.
1 parent 11e9e18 commit 4defbf3

File tree

1 file changed

+38
-35
lines changed

1 file changed

+38
-35
lines changed

Makefile.macosx

Lines changed: 38 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -295,14 +295,15 @@ INSTALLDIR := /usr/local
295295

296296
# Command to "install" to system directories. "install" for Linux. "ginstall" for Mac.
297297

298-
INSTALL=ginstall
298+
INSTALL=install
299299

300300
.PHONY: install
301-
install : $(APPS) direwolf.conf tocalls.txt symbols-new.txt symbolsX.txt dw-icon.png direwolf.desktop
301+
install : $(APPS) direwolf.conf tocalls.txt symbols-new.txt symbolsX.txt dw-icon.png
302302
#
303303
# Applications, not installed with package manager, normally go in /usr/local/bin.
304304
# /usr/bin is used instead when installing from .DEB or .RPM package.
305305
#
306+
$(INSTALL) -d $(INSTALLDIR)/bin
306307
$(INSTALL) direwolf $(INSTALLDIR)/bin
307308
$(INSTALL) decode_aprs $(INSTALLDIR)/bin
308309
$(INSTALL) text2tt $(INSTALLDIR)/bin
@@ -329,52 +330,54 @@ install : $(APPS) direwolf.conf tocalls.txt symbols-new.txt symbolsX.txt dw-icon
329330
#
330331
# Misc. data such as "tocall" to system mapping.
331332
#
332-
$(INSTALL) -D --mode=644 tocalls.txt /usr/share/direwolf/tocalls.txt
333-
$(INSTALL) -D --mode=644 symbols-new.txt /usr/share/direwolf/symbols-new.txt
334-
$(INSTALL) -D --mode=644 symbolsX.txt /usr/share/direwolf/symbolsX.txt
335-
$(INSTALL) -D --mode=644 dw-icon.png /usr/share/direwolf/dw-icon.png
336-
$(INSTALL) -D --mode=644 direwolf.desktop /usr/share/applications/direwolf.desktop
333+
$(INSTALL) -d $(INSTALLDIR)/share
334+
$(INSTALL) -m 644 tocalls.txt $(INSTALLDIR)/share
335+
$(INSTALL) -m 644 symbols-new.txt $(INSTALLDIR)/share
336+
$(INSTALL) -m 644 symbolsX.txt $(INSTALLDIR)/share
337+
$(INSTALL) -m 644 dw-icon.png $(INSTALLDIR)/share
337338
#
338339
# Documentation. Various plain text files and PDF.
339340
#
340-
$(INSTALL) -D --mode=644 README.md $(INSTALLDIR)/share/doc/direwolf/README.md
341-
$(INSTALL) -D --mode=644 CHANGES.md $(INSTALLDIR)/share/doc/direwolf/CHANGES.md
342-
$(INSTALL) -D --mode=644 LICENSE-dire-wolf.txt $(INSTALLDIR)/share/doc/direwolf/LICENSE-dire-wolf.txt
343-
$(INSTALL) -D --mode=644 LICENSE-other.txt $(INSTALLDIR)/share/doc/direwolf/LICENSE-other.txt
344-
#
345-
$(INSTALL) -D --mode=644 doc/User-Guide.pdf $(INSTALLDIR)/share/doc/direwolf/User-Guide.pdf
346-
$(INSTALL) -D --mode=644 doc/Raspberry-Pi-APRS.pdf $(INSTALLDIR)/share/doc/direwolf/Raspberry-Pi-APRS.pdf
347-
$(INSTALL) -D --mode=644 doc/Raspberry-Pi-APRS-Tracker.pdf $(INSTALLDIR)/share/doc/direwolf/Raspberry-Pi-APRS-Tracker.pdf
348-
$(INSTALL) -D --mode=644 doc/Raspberry-Pi-SDR-IGate.pdf $(INSTALLDIR)/share/doc/direwolf/Raspberry-Pi-SDR-IGate.pdf
349-
$(INSTALL) -D --mode=644 doc/APRStt-Implementation-Notes.pdf $(INSTALLDIR)/share/doc/direwolf/APRStt-Implementation-Notes.pdf
350-
$(INSTALL) -D --mode=644 doc/APRStt-interface-for-SARTrack.pdf $(INSTALLDIR)/share/doc/direwolf/APRStt-interface-for-SARTrack.pdf
351-
$(INSTALL) -D --mode=644 doc/APRS-Telemetry-Toolkit.pdf $(INSTALLDIR)/share/doc/direwolf/APRS-Telemetry-Toolkit.pdf
352-
$(INSTALL) -D --mode=644 doc/A-Better-APRS-Packet-Demodulator-Part-1-1200-baud.pdf $(INSTALLDIR)/share/doc/direwolf/A-Better-APRS-Packet-Demodulator-Part-1-1200-baud.pdf
353-
$(INSTALL) -D --mode=644 doc/A-Better-APRS-Packet-Demodulator-Part-2-9600-baud.pdf $(INSTALLDIR)/share/doc/direwolf/A-Better-APRS-Packet-Demodulator-Part-2-9600-baud.pdf
341+
$(INSTALL) -d $(INSTALLDIR)/share/doc/direwolf
342+
$(INSTALL) -m 644 README.md $(INSTALLDIR)/share/doc/direwolf
343+
$(INSTALL) -m 644 CHANGES.md $(INSTALLDIR)/share/doc/direwolf
344+
$(INSTALL) -m 644 LICENSE-dire-wolf.txt $(INSTALLDIR)/share/doc/direwolf
345+
$(INSTALL) -m 644 LICENSE-other.txt $(INSTALLDIR)/share/doc/direwolf
346+
#
347+
$(INSTALL) -m 644 doc/User-Guide.pdf $(INSTALLDIR)/share/doc/direwolf
348+
$(INSTALL) -m 644 doc/Raspberry-Pi-APRS.pdf $(INSTALLDIR)/share/doc/direwolf
349+
$(INSTALL) -m 644 doc/Raspberry-Pi-APRS-Tracker.pdf $(INSTALLDIR)/share/doc/direwolf
350+
$(INSTALL) -m 644 doc/Raspberry-Pi-SDR-IGate.pdf $(INSTALLDIR)/share/doc/direwolf
351+
$(INSTALL) -m 644 doc/APRStt-Implementation-Notes.pdf $(INSTALLDIR)/share/doc/direwolf
352+
$(INSTALL) -m 644 doc/APRStt-interface-for-SARTrack.pdf $(INSTALLDIR)/share/doc/direwolf
353+
$(INSTALL) -m 644 doc/APRS-Telemetry-Toolkit.pdf $(INSTALLDIR)/share/doc/direwolf
354+
$(INSTALL) -m 644 doc/A-Better-APRS-Packet-Demodulator-Part-1-1200-baud.pdf $(INSTALLDIR)/share/doc/direwolf
355+
$(INSTALL) -m 644 doc/A-Better-APRS-Packet-Demodulator-Part-2-9600-baud.pdf $(INSTALLDIR)/share/doc/direwolf
354356
#
355357
# Sample config files also go into the doc directory.
356358
# When building from source, these can be put in home directory with "make install-conf".
357359
# When installed from .DEB or .RPM package, the user will need to copy these to
358360
# the home directory or other desired location.
359361
# Someone suggested that these could go into an "examples" subdirectory under doc.
360362
#
361-
$(INSTALL) -D --mode=644 direwolf.conf $(INSTALLDIR)/share/doc/direwolf/direwolf.conf
362-
$(INSTALL) -D --mode=644 telemetry-toolkit/telem-m0xer-3.txt $(INSTALLDIR)/share/doc/direwolf/telem-m0xer-3.txt
363-
$(INSTALL) -D --mode=644 telemetry-toolkit/telem-balloon.conf $(INSTALLDIR)/share/doc/direwolf/telem-balloon.conf
364-
$(INSTALL) -D --mode=644 telemetry-toolkit/telem-volts.conf $(INSTALLDIR)/share/doc/direwolf/telem-volts.conf
363+
$(INSTALL) -m 644 direwolf.conf $(INSTALLDIR)/share/doc/direwolf
364+
$(INSTALL) -m 644 telemetry-toolkit/telem-m0xer-3.txt $(INSTALLDIR)/share/doc/direwolf
365+
$(INSTALL) -m 644 telemetry-toolkit/telem-balloon.conf $(INSTALLDIR)/share/doc/direwolf
366+
$(INSTALL) -m 644 telemetry-toolkit/telem-volts.conf $(INSTALLDIR)/share/doc/direwolf
365367
#
366368
# "man" pages
367369
#
368-
$(INSTALL) -D --mode=644 man1/aclients.1 $(INSTALLDIR)/man/man1/aclients.1
369-
$(INSTALL) -D --mode=644 man1/atest.1 $(INSTALLDIR)/man/man1/atest.1
370-
$(INSTALL) -D --mode=644 man1/decode_aprs.1 $(INSTALLDIR)/man/man1/decode_aprs.1
371-
$(INSTALL) -D --mode=644 man1/direwolf.1 $(INSTALLDIR)/man/man1/direwolf.1
372-
$(INSTALL) -D --mode=644 man1/gen_packets.1 $(INSTALLDIR)/man/man1/gen_packets.1
373-
$(INSTALL) -D --mode=644 man1/ll2utm.1 $(INSTALLDIR)/man/man1/ll2utm.1
374-
$(INSTALL) -D --mode=644 man1/log2gpx.1 $(INSTALLDIR)/man/man1/log2gpx.1
375-
$(INSTALL) -D --mode=644 man1/text2tt.1 $(INSTALLDIR)/man/man1/text2tt.1
376-
$(INSTALL) -D --mode=644 man1/tt2text.1 $(INSTALLDIR)/man/man1/tt2text.1
377-
$(INSTALL) -D --mode=644 man1/utm2ll.1 $(INSTALLDIR)/man/man1/utm2ll.1
370+
$(INSTALL) -d $(INSTALLDIR)/man/man1
371+
$(INSTALL) -m 644 man1/aclients.1 $(INSTALLDIR)/man/man1
372+
$(INSTALL) -m 644 man1/atest.1 $(INSTALLDIR)/man/man1
373+
$(INSTALL) -m 644 man1/decode_aprs.1 $(INSTALLDIR)/man/man1
374+
$(INSTALL) -m 644 man1/direwolf.1 $(INSTALLDIR)/man/man1
375+
$(INSTALL) -m 644 man1/gen_packets.1 $(INSTALLDIR)/man/man1
376+
$(INSTALL) -m 644 man1/ll2utm.1 $(INSTALLDIR)/man/man1
377+
$(INSTALL) -m 644 man1/log2gpx.1 $(INSTALLDIR)/man/man1
378+
$(INSTALL) -m 644 man1/text2tt.1 $(INSTALLDIR)/man/man1
379+
$(INSTALL) -m 644 man1/tt2text.1 $(INSTALLDIR)/man/man1
380+
$(INSTALL) -m 644 man1/utm2ll.1 $(INSTALLDIR)/man/man1
378381
#
379382
@echo " "
380383
@echo "If this is your first install, not an upgrade, type this to put a copy"

0 commit comments

Comments
 (0)