source: branches/help/lib/motifHack/Makefile

Last change on this file was 17618, checked in by westram, 6 years ago
File size: 454 bytes
Line 
1.SUFFIXES: .xpm
2.PHONY: all clean
3
4CONVERTER:=./convert_xpm.pl
5
6SOURCEDIR:=../pixmaps
7TARGETDIR:=./pixmaps
8
9SOURCE_XPM:= \
10        $(wildcard $(SOURCEDIR)/*.xpm) \
11        $(filter-out $(SOURCEDIR)/unused/%,$(wildcard $(SOURCEDIR)/*/*.xpm))
12
13TARGET_XPM:=$(subst $(SOURCEDIR),$(TARGETDIR),$(SOURCE_XPM))
14
15all: $(TARGET_XPM)
16        @test \! -z "$(TARGET_XPM)"
17
18clean:
19        -rm -f $(TARGET_XPM)
20
21$(TARGETDIR)/%.xpm : $(SOURCEDIR)/%.xpm $(CONVERTER) Makefile
22        $(CONVERTER) $@ < $<
23
Note: See TracBrowser for help on using the repository browser.