Skip to content

Commit

Permalink
build: add Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
socsieng committed Dec 30, 2020
1 parent 6618d21 commit 99caa2d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
18 changes: 18 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
prefix ?= /usr/local
bindir ?= $(prefix)/bin

.PHONY: build
build:
@swift build -c release --disable-sandbox

.PHONY: install
install: build
@install ".build/release/sendkeys" "$(bindir)"

.PHONY: uninstall
uninstall:
rm -rf "$(bindir)/sendkeys"

.PHONY: clean
clean:
rm -rf .build/release
6 changes: 3 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import PackageDescription

let package = Package(
name: "SendKeys",
name: "sendkeys",
dependencies: [
// Dependencies declare other packages that this package depends on.
.package(url: "https://github.com/apple/swift-argument-parser", from: "0.3.1")
Expand All @@ -13,13 +13,13 @@ let package = Package(
// 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: "SendKeys",
name: "sendkeys",
dependencies: ["SendKeysLib", "ArgumentParser"]),
.target(
name: "SendKeysLib",
dependencies: ["ArgumentParser"]),
.testTarget(
name: "SendKeysTests",
dependencies: ["SendKeys", "SendKeysLib"]),
dependencies: ["sendkeys", "SendKeysLib"]),
]
)
File renamed without changes.

0 comments on commit 99caa2d

Please sign in to comment.