This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Use make automatic variables to specify files

This fixes some out of tree build issues that were present when manually
specifying the path names
  • Loading branch information...
hyperair committed Jul 8, 2010
1 parent c893687 commit c2998a9674b1572e7c90d99c845c71308f19150d
Showing with 5 additions and 5 deletions.
  1. +5 −5 GKeyFile/Makefile.am
View
@@ -24,13 +24,13 @@ module_SCRIPTS = gkeyfile-sharp.dll.config
all: gkeyfile-sharp.dll
-$(API): $(srcdir)/$(RAW_API) $(srcdir)/$(METADATA)
- cp $(srcdir)/$(RAW_API) $(API)
- chmod u+w $(API)
- $(FIXUP) --api=$(API) --metadata=$(srcdir)/$(METADATA)
+$(API): $(RAW_API) $(METADATA)
+ cp $< $@
+ chmod u+w $@
+ $(FIXUP) --api=$@ --metadata=$(lastword $^)
$(GENERATED_SRCS): $(API)
- $(CODEGEN) --generate $(API) $(GLIB_SHARP_CFLAGS) --outdir=$(GENERATED_SRCDIR) --customdir=$(srcdir) --assembly-name=gkeyfile-sharp
+ $(CODEGEN) --generate $< $(GLIB_SHARP_CFLAGS) --outdir=$(GENERATED_SRCDIR) --customdir=$(srcdir) --assembly-name=gkeyfile-sharp
gkeyfile-sharp.dll: AssemblyInfo.cs $(GENERATED_SRCS)
$(CSC) -keyfile:$(top_srcdir)/gkeyfile-sharp.snk -out:$@ -unsafe -target:library $(GLIB_SHARP_LIBS) $^

0 comments on commit c2998a9

Please sign in to comment.