Merge pull request #44 from dl1mx/master

Add install target to Makefiles
This commit is contained in:
Andy CA6JAU 2020-07-03 09:02:28 -04:00 committed by GitHub
commit f33a85840a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 31 additions and 1 deletions

View File

@ -19,6 +19,9 @@ DMR2NXDN: $(OBJECTS)
%.o: %.cpp
$(CXX) $(CFLAGS) -c -o $@ $<
install:
install -m 755 DMR2NXDN /usr/local/bin/
clean:
$(RM) DMR2NXDN *.o *.d *.bak *~

View File

@ -17,6 +17,9 @@ DMR2P25: $(OBJECTS)
%.o: %.cpp
$(CXX) $(CFLAGS) -c -o $@ $<
install:
install -m 755 DMR2P25 /usr/local/bin/
clean:
$(RM) DMR2P25 *.o *.d *.bak *~

View File

@ -18,6 +18,9 @@ DMR2YSF: $(OBJECTS)
%.o: %.cpp
$(CXX) $(CFLAGS) -c -o $@ $<
install:
install -m 755 DMR2YSF /usr/local/bin/
clean:
$(RM) DMR2YSF *.o *.d *.bak *~

View File

@ -1,5 +1,6 @@
SUBDIRS = DMR2NXDN DMR2YSF NXDN2DMR YSF2DMR YSF2NXDN YSF2P25
CLEANDIRS = $(SUBDIRS:%=clean-%)
INSTALLDIRS = $(SUBDIRS:%=install-%)
all: $(SUBDIRS)
@ -11,4 +12,9 @@ clean: $(CLEANDIRS)
$(CLEANDIRS):
$(MAKE) -C $(@:clean-%=%) clean
.PHONY: $(SUBDIRS) $(CLEANDIRS)
install: $(INSTALLDIRS)
$(INSTALLDIRS):
$(MAKE) -C $(@:install-%=%) install
.PHONY: $(SUBDIRS) $(CLEANDIRS) $(INSTALLDIRS)

View File

@ -19,6 +19,9 @@ NXDN2DMR: $(OBJECTS)
%.o: %.cpp
$(CXX) $(CFLAGS) -c -o $@ $<
install:
install -m 755 NXDN2DMR /usr/local/bin/
clean:
$(RM) NXDN2DMR *.o *.d *.bak *~

View File

@ -17,6 +17,9 @@ P252DMR: $(OBJECTS)
%.o: %.cpp
$(CXX) $(CFLAGS) -c -o $@ $<
install:
install -m 755 P252DMR /usr/local/bin/
clean:
$(RM) P252DMR *.o *.d *.bak *~

View File

@ -19,6 +19,9 @@ YSF2DMR: $(OBJECTS)
%.o: %.cpp
$(CXX) $(CFLAGS) -c -o $@ $<
install:
install -m 755 YSF2DMR /usr/local/bin/
clean:
$(RM) YSF2DMR *.o *.d *.bak *~

View File

@ -18,6 +18,9 @@ YSF2NXDN: $(OBJECTS)
%.o: %.cpp
$(CXX) $(CFLAGS) -c -o $@ $<
install:
install -m 755 YSF2NXDN /usr/local/bin/
clean:
$(RM) YSF2NXDN *.o *.d *.bak *~

View File

@ -16,6 +16,9 @@ YSF2P25: $(OBJECTS)
%.o: %.cpp
$(CXX) $(CFLAGS) -c -o $@ $<
install:
install -m 755 YSF2P25 /usr/local/bin/
clean:
$(RM) YSF2P25 *.o *.d *.bak *~