tgi
OUTPUTDIRS := lib \
- target \
asminc \
cfg \
include \
samples \
- $(subst ../,,$(filter-out $(wildcard ../include/*.*),$(wildcard ../include/*)))
+ $(subst ../,,$(filter-out $(wildcard ../include/*.*),$(wildcard ../include/*)))\
+ $(subst ../,,$(wildcard ../target/*/drv/*))\
+ $(subst ../,,$(wildcard ../target/*/util))\
.PHONY: all mostlyclean clean install zip lib $(TARGETS)
# Transitional line active. Final line commented out below in order to
# allow some time for transition between the directory structures
clean:
- $(call RMDIR,../libwrk ../lib ../targetutil ../target $(addprefix ../,$(DRVTYPES)))
-# $(call RMDIR,../libwrk ../lib ../target)
+ $(call RMDIR,../libwrk ../lib ../targetutil ../$(TARGETDIR) $(addprefix ../,$(DRVTYPES)))
+# $(call RMDIR,../libwrk ../lib ../$(TARGETDIR))
ifdef CMD_EXE
$(if $(prefix),,$(error variable `prefix' must be set))
$(INSTALL) -d $(DESTDIR)$(datadir)/$(dir)
-$(INSTALL) -m644 ../$(dir)/*.* $(DESTDIR)$(datadir)/$(dir)
+$(INSTALL) -m0644 ../$(dir)/*.* $(DESTDIR)$(datadir)/$(dir)
endef # INSTALL_recipe
install:
$(foreach dir,$(OUTPUTDIRS),$(INSTALL_recipe))
+
endif # CMD_EXE
define ZIP_recipe