| 1 |
MODULE_TOPDIR = ../.. |
| 2 |
|
| 3 |
PGM = d.barscale |
| 4 |
|
| 5 |
LIBES = $(DISPLAYLIB) $(SYMBLIB) $(GISLIB) |
| 6 |
DEPENDENCIES = $(DISPLAYDEP) $(SYMBDEP) $(GISDEP) |
| 7 |
|
| 8 |
include $(MODULE_TOPDIR)/include/Make/Module.make |
| 9 |
|
| 10 |
# thumbnail previews |
| 11 |
IMGSRC := $(wildcard thumbnails/*.png) |
| 12 |
IMGDST := $(patsubst thumbnails/%,$(HTMLDIR)/barscales/%,$(IMGSRC)) |
| 13 |
MDIMGDST := $(patsubst thumbnails/%,$(MDDIR)/source/barscales/%,$(IMGSRC)) |
| 14 |
|
| 15 |
default: cmd $(IMGDST) $(MDIMGDST) |
| 16 |
|
| 17 |
$(HTMLDIR)/barscales/%.png: thumbnails/%.png | $(HTMLDIR)/barscales |
| 18 |
$(INSTALL_DATA) $< $@ |
| 19 |
|
| 20 |
$(MDDIR)/source/barscales/%.png: thumbnails/%.png | $(MDDIR)/source/barscales |
| 21 |
$(INSTALL_DATA) $< $@ |
| 22 |
|
| 23 |
$(HTMLDIR)/barscales: $(HTMLDIR) |
| 24 |
$(MKDIR) $@ |
| 25 |
|
| 26 |
$(MDDIR)/source/barscales: $(MDDIR) |
| 27 |
$(MKDIR) $@ |