732cdf7729
* */Makefile.in : rework the prefix handling for duncan's packaging. svn path=/trunk/gtk-sharp/; revision=18778
27 lines
695 B
Makefile
27 lines
695 B
Makefile
MCS = mcs
|
|
DESTDIR =
|
|
prefix=@prefix@
|
|
bindir = $(prefix)/bin
|
|
|
|
SOURCES = \
|
|
schemagen.cs \
|
|
#
|
|
|
|
all: gconfsharp-schemagen.exe gconfsharp-schemagen
|
|
|
|
gconfsharp-schemagen.exe: $(SOURCES)
|
|
$(MCS) /out:gconfsharp-schemagen.exe $(SOURCES)
|
|
|
|
gconfsharp-schemagen: gconfsharp-schemagen.in
|
|
sed -e 's^\@bindir\@^$(bindir)^g' < gconfsharp-schemagen.in > gconfsharp-schemagen.tmp \
|
|
&& mv gconfsharp-schemagen.tmp gconfsharp-schemagen \
|
|
&& chmod +x gconfsharp-schemagen
|
|
|
|
install: all
|
|
../../mkinstalldirs $(DESTDIR)$(prefix)/bin && \
|
|
chmod +x gconfsharp-schemagen && cp gconfsharp-schemagen.exe gconfsharp-schemagen $(DESTDIR)$(bindir)
|
|
|
|
clean:
|
|
rm -f gconfsharp-schemagen.exe
|
|
rm -f gconfsharp-schemagen
|
|
|