Makefile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. MODULE_TOPDIR = ../..
  2. include $(MODULE_TOPDIR)/include/Make/Vars.make
  3. include $(MODULE_TOPDIR)/include/Make/Rules.make
  4. SRCH := $(wildcard ../../include/grass/*.h ../../include/grass/defs/*.h ../../include/grass/vect/*.h ../../include/grass/iostream/*.h)
  5. DSTH := $(patsubst ../../include/grass/%.h,$(ARCH_INCDIR)/%.h,$(SRCH))
  6. DSTH_EXTRA = $(ARCH_INCDIR)/copying.h $(ARCH_INCDIR)/citing.h $(ARCH_INCDIR)/confparms.h
  7. default: $(DSTH) $(DSTH_EXTRA)
  8. # cancel rule from Rules.make
  9. $(ARCH_INCDIR)/%.h: %.h
  10. $(ARCH_INCDIR)/defs/%.h: defs/%.h | $(ARCH_INCDIR)/defs
  11. $(INSTALL_DATA) $< $@
  12. $(ARCH_INCDIR)/vect/%.h: vect/%.h | $(ARCH_INCDIR)/vect
  13. $(INSTALL_DATA) $< $@
  14. $(ARCH_INCDIR)/iostream/%.h: iostream/%.h | $(ARCH_INCDIR)/iostream
  15. $(INSTALL_DATA) $< $@
  16. $(ARCH_INCDIR)/%.h: %.h | $(ARCH_INCDIR)
  17. $(INSTALL_DATA) $< $@
  18. $(ARCH_INCDIR)/defs: | $(ARCH_INCDIR)
  19. $(MKDIR) $@
  20. $(ARCH_INCDIR)/vect: | $(ARCH_INCDIR)
  21. $(MKDIR) $@
  22. $(ARCH_INCDIR)/iostream: | $(ARCH_INCDIR)
  23. $(MKDIR) $@
  24. $(ARCH_INCDIR)/copying.h: $(MODULE_TOPDIR)/COPYING | $(ARCH_INCDIR)
  25. sed -e 's/^\(.*\)$$/"\1\\n"/' $< > $@
  26. $(ARCH_INCDIR)/citing.h: $(MODULE_TOPDIR)/CITING | $(ARCH_INCDIR)
  27. sed -e 's/^\(.*\)$$/"\1\\n"/' $< > $@
  28. $(ARCH_INCDIR)/confparms.h: $(MODULE_TOPDIR)/config.status | $(ARCH_INCDIR)
  29. $< --config | sed "s/'//g" | sed 's/\(.*\)/".\/configure \1"/' > $@