REFERENCES = $(TICKYPIP_LIBS) TARGET = Tickypip.exe WRAPPER = tickypip CSFLAGS = \ -debug \ -target:exe CSFILES = \ App.cs \ BlankCell.cs \ Board.cs \ CellBorder.cs \ Cell.cs \ ComputerCell.cs \ ConnectorCell.cs \ Direction.cs \ DirectionUtil.cs \ GameEngine.cs \ ImageButton.cs \ ImageLoader.cs \ LevelLoader.cs \ MainWindow.cs \ NetWalkLevelLoader.cs \ ServerCell.cs \ TPLevelLoader.cs bin_SCRIPTS = $(TARGET) $(WRAPPER) $(TARGET): $(CSFILES) $(srcdir)/Defines.cs $(RESOURCEFILES) $(CSC) /out:$@ $(CSFLAGS) $(REFERENCES) $(CSFILES) $(srcdir)/Defines.cs $(WRAPPER): $(srcdir)/$(WRAPPER).in Makefile sed -e "s|\@prefix\@|$(prefix)|g" \ -e "s|\@pkglibdir\@|$(pkglibdir)|g" \ -e "s|\@bindir\@|$(bindir)|g" \ -e "s|\@target\@|$(TARGET)|g" \ -e "s|\@wrapper\@|$(WRAPPER)|g" \ -e "s|\@extragac\@|$(EXTRA_GAC_PREFIX)|g" \ -e "s|\@runtime\@|$(RUNTIME)|g" \ < $< > $@ chmod +x $(WRAPPER) $(srcdir)/Defines.cs: $(srcdir)/Defines.cs.in Makefile sed -e "s|\@version\@|$(VERSION)|" \ -e "s|\@datadir\@|$(datadir)|" \ -e "s|\@pkglibdir\@|$(pkglibdir)|" \ < $< > $@ EXTRA_DIST = \ $(CSFILES) \ $(srcdir)/Defines.cs.in \ $(WRAPPER).in CLEANFILES = \ $(TARGET) \ $(WRAPPER) \ Defines.cs