-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
32 lines (26 loc) · 1 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
PACKAGE_TARNAME = notarize-app
prefix = /usr/local
exec_prefix = ${prefix}
bindir = ${exec_prefix}/bin
datarootdir = ${prefix}/share
datadir = ${datarootdir}
libdir = ${prefix}/lib
INSTALL = install
INSTALL_PROGRAM = $(INSTALL)
.PHONY: install install-homebrew uninstall
install: notarize-app
$(INSTALL) -d $(DESTDIR)$(bindir)
$(INSTALL_PROGRAM) $(PACKAGE_TARNAME) $(DESTDIR)$(bindir)/$(PACKAGE_TARNAME)
$(INSTALL) -d $(DESTDIR)$(datadir)/$(PACKAGE_TARNAME)
cp -R support $(DESTDIR)$(datadir)/$(PACKAGE_TARNAME)
$(INSTALL) -d $(DESTDIR)$(libdir)/$(PACKAGE_TARNAME)
cp -R lib/create-dmg $(DESTDIR)$(libdir)/$(PACKAGE_TARNAME)
install-homebrew:
$(INSTALL) -d $(DESTDIR)$(bindir)
$(INSTALL_PROGRAM) $(PACKAGE_TARNAME) $(DESTDIR)$(bindir)/$(PACKAGE_TARNAME)
$(INSTALL) -d $(DESTDIR)$(datadir)/$(PACKAGE_TARNAME)
cp -R support $(DESTDIR)$(datadir)/$(PACKAGE_TARNAME)
uninstall:
rm -f $(DESTDIR)$(bindir)/$(PACKAGE_TARNAME)
rm -rf $(DESTDIR)$(datadir)/$(PACKAGE_TARNAME)
rm -rf $(DESTDIR)$(libdir)/$(PACKAGE_TARNAME)