Update Makefile and Package.swift
This commit is contained in:
parent
cf44dd9fed
commit
2b23844daf
11
Makefile
11
Makefile
|
@ -1,3 +1,12 @@
|
|||
prefix ?= /usr/local
|
||||
bindir = $(prefix)/bin
|
||||
|
||||
install:
|
||||
swift build -c release
|
||||
install .build/release/ScoutCLT /usr/local/bin/scout
|
||||
install .build/release/ScoutCLT "$(bindir)/scout"
|
||||
|
||||
uninstall:
|
||||
rm -f "$(bindir)/scout"
|
||||
|
||||
clean:
|
||||
rm -rf .build
|
|
@ -5,15 +5,16 @@ import PackageDescription
|
|||
|
||||
let package = Package(
|
||||
name: "Scout",
|
||||
platforms: [.macOS("10.13")],
|
||||
platforms: [.macOS("10.13"), .iOS("10.0"), .tvOS("9.0"), .watchOS("3.0")],
|
||||
products: [
|
||||
// Products define the executables and libraries produced by a package, and make them visible to other packages.
|
||||
.library(
|
||||
name: "Scout",
|
||||
targets: ["Scout"]),
|
||||
.executable(
|
||||
name: "ScoutCLT",
|
||||
targets: ["ScoutCLT"])
|
||||
],
|
||||
dependencies: [
|
||||
// Dependencies declare other packages that this package depends on.
|
||||
.package(
|
||||
url: "https://github.com/tadija/AEXML.git",
|
||||
from: "4.5.0"),
|
||||
|
@ -22,8 +23,6 @@ let package = Package(
|
|||
from: "0.0.1")
|
||||
],
|
||||
targets: [
|
||||
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
|
||||
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
|
||||
.target(
|
||||
name: "Scout",
|
||||
dependencies: ["AEXML"]),
|
||||
|
|
Loading…
Reference in New Issue