mirror of
https://github.com/ShaYmez/MMDVM_CM.git
synced 2024-12-21 17:00:55 -05:00
Merge pull request #44 from dl1mx/master
Add install target to Makefiles
This commit is contained in:
commit
f33a85840a
@ -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 *~
|
||||
|
||||
|
@ -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 *~
|
||||
|
||||
|
@ -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 *~
|
||||
|
||||
|
8
Makefile
8
Makefile
@ -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)
|
||||
|
@ -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 *~
|
||||
|
||||
|
@ -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 *~
|
||||
|
||||
|
@ -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 *~
|
||||
|
||||
|
@ -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 *~
|
||||
|
||||
|
@ -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 *~
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user