| 1234567891011121314151617181920212223 |
- PI=pi@raspberrypi.local
- SUBDIRS = examples
- TARGET = subdirs
- PHONY += $(TARGET) $(SUBDIRS) %.clean
- OUTDIR = bin
- all: $(TARGET)
- subdirs: $(SUBDIRS)
- $(SUBDIRS):
- $(MAKE) -C $@
- %.clean:
- @(cd $(patsubst %.clean, %, $@) && $(MAKE) clean)
- clean distclean: $(patsubst %, %.clean, $(SUBDIRS))
- .PHONY: $(PHONY) install clean distclean
- upload:
- scp $(OUTDIR)/* $(PI):~/
|