source: tags/arb-6.0/lib/motifHack/Makefile

Last change on this file was 11738, checked in by westram, 11 years ago
  • fix build from tarball
    • fix name of tag-#define expected in svn_revision.h
    • xpm-converter creates target directories on-the-fly
File size: 455 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.