Line | |
---|
1 | .SUFFIXES: .xpm |
---|
2 | .PHONY: all clean |
---|
3 | |
---|
4 | CONVERTER:=./convert_xpm.pl |
---|
5 | |
---|
6 | SOURCEDIR:=../pixmaps |
---|
7 | TARGETDIR:=./pixmaps |
---|
8 | |
---|
9 | SOURCE_XPM:= \ |
---|
10 | $(wildcard $(SOURCEDIR)/*.xpm) \ |
---|
11 | $(filter-out $(SOURCEDIR)/unused/%,$(wildcard $(SOURCEDIR)/*/*.xpm)) |
---|
12 | |
---|
13 | TARGET_XPM:=$(subst $(SOURCEDIR),$(TARGETDIR),$(SOURCE_XPM)) |
---|
14 | |
---|
15 | all: $(TARGET_XPM) |
---|
16 | @test \! -z "$(TARGET_XPM)" |
---|
17 | |
---|
18 | clean: |
---|
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.